SyntaxFix
Write A Post
Hire A Developer
Questions
As an alternative to using -regex option on find, since the question is labeled bash, you can use the brace expansion mechanism:
-regex
find
eval find . -false "-o -name Robert".{jpg,pdf}