I have some files named with person names, but some are completely capitalized, others completely in lowercase and some even with mixed case.
I would like to set up a regex to filter only those file names that were totally uppercase, without containing the - Cópia
extension before the extension.
The snippet at the end I can detect with the regex this answer from Guillaume in another question I had asked, but now I need to merge a regex to check if the filename is all uppercase, denying the regex of the linked response, in case you have the quoted passage.
To demonstrate what I want to do:
EDSON ARANTES DO NASCIMENTO.jpg -> passa
EDsON ARANTEs DO NASCIMENTO.jpg -> não passa
EDSON ARANTES DO NASCIMENTO - Cópia.jpg -> não passa
EDSON ARANTES DO NASCIMENTO. - Cópia - Cópia.jpg -> não passa
The regex I made so far was:
^([A-Z]{2,}+).*( - C[oó]pia\.[^.]+)$
but this lets pass all the cases above. I even found this other answer in SOEn but I do not know how to apply. How do I adapt this code so that only the first example passes?