capture and move a string between two special characters

Advanced Renamer forum
#1 : 22/01-19 05:11
A A
A A
Posts: 1
I have a list of filenames like this

wordone, wordtwo - anynumberofwordsandcharacters.ext

I'd like to run a command (I think a MOVE command using regular expressions) that results in this

wordtwo, wordone - anynumberofwordsandcharacters.ext

all words vary in length.
the key is the word between the comma and dash.

thanks in advance

also, i f'n love this program!



22/01-19 05:11
#2 : 22/01-19 15:32
Styb
Styb
Posts: 5
Reply to #1:

You can use the replace method with regular expressions:

text to be replaced: (.*), (.*) - (.*)

replace with: \2, \1 - \3



22/01-19 15:32 - edited 23/01-19 10:39