delete everything before 1st word with capital letter

Advanced Renamer forum
#1 : 31/08-20 16:10
nfastsagar
nfastsagar
Posts: 4
i have file name like
560slv1-high_Lisa+Simpson+and+Oarack+Obama_-_into+the+white+house
566sld1_720_6500_Donald+Trump+and+Melania_-_into+the+white+house

i would like to get rid of everything before the first capital letter
like this
Lisa+Simpson+and+Oarack+Obama_-_into+the+white+house
Donald+Trump+and+Melania_-_into+the+white+house

does anyone know how to do it?
thanks


31/08-20 16:10
#2 : 31/08-20 19:00
David Lee
David Lee
Posts: 1125
Replace method...
Replace: ^.*?(?=[A-Z])
with: blank
Occurrence: 1st
Case sensitive
Use regular expressions

Explanation...
"^" means start matching at the beginning of the filename
".*" matches any number of any characters
"?" modifies ".*" to capture the minimum number of characters (otherwise it will be "greedy" and match every character up to the last upper case letter)
"(?=[A-Z])" is a "lookahead" - the previously defined pattern is only matched if it is followed by the character(s) defined in the pattern following "=" - ie "[A-Z] in this case, which matches any single uppercase letter.


31/08-20 19:00 - edited 31/08-20 19:02
#3 : 01/09-20 01:10
nfastsagar
nfastsagar
Posts: 4
Reply to #2:
thanks.. it worked


01/09-20 01:10