Given a list of files, I want to find all the ones ending with either .pem or .cer. This command works to find the PEMs.
find . -d 1 -regex ".*\.pem"
But this command finds nothing:
find . -d 1 -regex ".*\.(pem|cer)"
This syntax works in the BBedit pattern playground. Is there some way to use regex groups with find?