#1 : 25/09-19 19:03 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! |
#2 : 25/09-19 22:17 David Lee
Posts: 1125
|
Remove pattern: -[^-]*$
Use regular expressions Removes the final instance of "-" followed by any number of any characters. |