Swap two adjacent words & separated by a hyphen

Advanced Renamer forum
#1 : 01/01-22 00:27
Ervin
Ervin
Posts: 17
This should be simple but, how do you swap just two words next to each other in a filename?

14 Feb 2021 - Valentine's Day

to

Feb 14 2021 - Valentine's Day
---------------------------------------------------
How you keep the first part of a filename that's separated by a hyphen "-" ?

Feb 14 2021 - Valentine's Day

to

Feb 14 2021


01/01-22 00:27
#2 : 01/01-22 02:02
David Lee
David Lee
Posts: 1125
1) Replace method...
Text to be replaced: ([^ ]* )([^ ]* )
Replace with: \2\1
Occurrence: 1st
Use regular expressions

2) Remove Pattern method...
Pattern: -* (space+hyphen+asterisk)
NOT regular expressions



01/01-22 02:02