4
I have some files named with person names, but some are completely uppercase, others completely lowercase and some even mixed case.
I would like to set up a regex to, from a list, filter only the filenames that were totally in uppercase, without containing the snippet - Cópia
before the extension.
The stretch at the end I can detect with the regex of William’s reply in another question I had asked, but now I need to merge a regex to check if the file name is all uppercase, denying the regex of the linked answer, in case you have the quote.
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’ve done so far was:
^([A-Z]{2,}+).*( - C[oó]pia\.[^.]+)$
but that passes all the above cases. I even found this another answer on Soen but I don’t know how to apply it. How do I adapt this code so that only the first example will pass?
Take a look at this question: https://answall.com/q/42172/129 or this https://answall.com/q/143866/129
– Sergio