Remove everything after Dash -

Advanced Renamer forum
#1 : 01/05-23 07:25
readmit
readmit
Posts: 2
I need some way to remove everything after the first dash in the name. I have several files and I just want to remove everything that comes after -


01/05-23 07:25
#2 : 01/05-23 11:11
David Lee
David Lee
Posts: 1125
I assume that you also want to remove the hyphen. If so, simply use...

Remove pattern: -*

If you want to retain the trailing hyphen then you will need to use a regular expression...

Remove pattern: -\K.*
Use regular expressions


01/05-23 11:11 - edited 01/05-23 19:30
#3 : 01/05-23 20:56
readmit
readmit
Posts: 2
Reply to #2:
Thanks, I went to remove, then I set -* and I put a checkmark on interpret as wildcard and it worked.


01/05-23 20:56 - edited 01/05-23 20:58