I have a number of files that I need to rename in a very specific fashion. I need to keep the 2 letter country code, 6 digit number and <.jpg> suffix, but remove everything before the 2 letter country code. For example:
<russia-business-lebedev-ru159521.jpg> should become <ru159521.jpg>
<russia-moscow-victory-parade-ru150898.jpg> should become <ru150898.jpg>
The current file numbers are of varying lengths because the keywords that make up everything before the country code differ depending on subject matter. I’m sure PM can do what I need with a variable that counts in from the right to keep the 2 letter country code, 6 digit number and <.jpg> suffix while removing everything before the country code.
However I’m unable to work out what the variable should be. Anyone have any suggestions?
Thanks in advance,
Jeremy Nicholl