Swap two adjacent words & separated by a hyphen
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
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
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
Text to be replaced: ([^ ]* )([^ ]* )
Replace with: \2\1
Occurrence: 1st
Use regular expressions
2) Remove Pattern method...
Pattern: -* (space+hyphen+asterisk)
NOT regular expressions