Remove Last Dash and Everything After

Advanced Renamer forum
#1 : 25/09-19 19:03
newoski
newoski
Posts: 4
Hi,

I have tons of folders named like:

FOO-FOO-123-456-789-01

The number of occurrences of FOO and 123-123 varies by folder, but the end is always the same with a -##

I'd like to remove the -## from all folders

Essentially removing the last - and everything after it.

Any guidance would be greatly appreciated!


25/09-19 19:03
#2 : 25/09-19 22:17
David Lee
David Lee
Posts: 1125
Remove pattern: -[^-]*$
Use regular expressions

Removes the final instance of "-" followed by any number of any characters.


25/09-19 22:17