delete everything before 1st word with capital letter
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
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
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.
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.
Reply to #2:
thanks.. it worked
thanks.. it worked