Remove all words after a character

Advanced Renamer forum
#1 : 09/07-23 12:51
Dixie
Dixie
Posts: 2
I have several video files named like

Cancun trip - hotel, markets #fun.mp4
Beach day - sun, beach, out.mp4
.... and so on.

I would like to remove all words after "-" so its like

Cancun trip.mp4
Beach day.mp4

How do I go about doing this? Help appreciated.


09/07-23 12:51
#2 : 10/07-23 08:32
Styb
Styb
Posts: 80
Reply to #1:
Replace method

Text to be replaced: (.*) - (.*)
Replace with: \1
Use regular epression

https://i.postimg.cc/pV1yDpvC/Immagine-001.png


10/07-23 08:32
#3 : 10/07-23 10:56
Dixie
Dixie
Posts: 2
Reply to #2:

Thank you. Works perfectly.


10/07-23 10:56