I know how to do it from the START of a name but I am stuck trying to remove from the END of a name.
Example:
MYART_ur_45_0000_123_186lo
to
MYART_ur_45_0000
Thank you for any advice.
I know how to do it from the START of a name but I am stuck trying to remove from the END of a name.
Example:
MYART_ur_45_0000_123_186lo
to
MYART_ur_45_0000
Thank you for any advice.
Which digits and underscores do you want to remove?
In your example it's removed two sets of digits and underscores and also some letters, while leaving some of the others. Can you be more specific about what you want to remove and what you want to keep?
A few more examples are needed.
Is the file extension always the same ?
One could simply write :
Old Name: MYART_ur_45_0000*.ext
New Name: MYART_ur_45_0000.ext
.ext is the file extension.
But this solution has obvious problems.
All selected relevant files would be named the same !
Ooops, I didn't see Leo's reply when I posted.
Sorry Leo.
Actually I want something a bit different, removing everything after and including the last underscore and keeping the exentsion
example:
MY-ART_ur_45_0000_123_186lo.jpg
MY-ART_ur_45_0001_123_1064lo.jpg
MY-ART_ur_45_0002_123_944lo.jpg
becomes:
MY-ART_ur_45_0000_123.jpg
MY-ART_ur_45_0001_123.jpg
MY-ART_ur_45_0002_123.jpg
Thanks
This may not be the best solution, but as a quick fix, I think it does work.
Old Name: (.*)(_.*)(\..*)
New Name: \1\3
Type is Regular Expressions
That worked, thanks!