"Why don't my regular expressions work with the 'find' utility in Linux/Ubuntu/Unix/Cygwin/Posix-environment?"
Short answer: You need
E.g. To find files with either of two file extensions, use:
find . -regextype posix-extended -regex '.*\.(xsd|java)'
Want to know the differences between POSIX Extended Regular Expressions and basic ones? Read this excellent resource about regular expressions. Want to test your regular expressions, live, in the browser? Try Regexpal.
egrep instead of
grep to enable extended regex functionality and use
sed -r instead of