Finding files that end with Digits, after a Specific Character...
Posted: Sun Jan 28, 2024 8:17 pm
I'm trying to find files that end with one-to-four numbers, after a dash.
FileName-7.ext
FileName-50.ext
FileName-429.ext
FileName-8136.ext
...and then I want to replace(remove) the dash and the numbers.
FileName.ext
FileName.ext
FileName.ext
FileName.ext
I've tried searching for the answer/example here, and I've poked at the RegEx, but I suck with it.
I used HandBrake a few years ago to batch convert videos, and it appended incrementing numbers onto everything it output (I've since figured out how to stop that), and I sorted all those videos into a lot of different folders, and I'm just trying to clean the names up.
FileName-7.ext
FileName-50.ext
FileName-429.ext
FileName-8136.ext
...and then I want to replace(remove) the dash and the numbers.
FileName.ext
FileName.ext
FileName.ext
FileName.ext
I've tried searching for the answer/example here, and I've poked at the RegEx, but I suck with it.
I used HandBrake a few years ago to batch convert videos, and it appended incrementing numbers onto everything it output (I've since figured out how to stop that), and I sorted all those videos into a lot of different folders, and I'm just trying to clean the names up.