Env: MacOs terminal: Catalina
Using the same regEx ".*/[^.]*\\\\.(go|txt)$"
".*/[^.]*\\\\.(go|txt)$"
Do you know why this works:
find -E . -regex &quo