Hello,
I am a new member seeking some regular expression assistance. I have thoroughly searched the forums and was unable to find my exact solution or something similar enough to hack together a solution. I am really impressed by how kind and helpful people are on this forum so I decided to make an account and see if someone here could offer some assistance to write a regular expression that takes a date at the beginning of a file name and moves it to the end.
Specifically:
Original:
(DATE) NAME
Modified:
NAME (DATE)
The date includes parenthesis and some files have (DATE-DATE)
Here's what I have so far:
MATCH: ^((\d{4}) (.*)
Replace: \2 (\1)
Currently this works only for DATE with no parentheses (most important) and it does not take into account DATE-DATE (date hyphen date) (nice to have, not necessary).
If anyone could give me any feedback on why my current code isn't working as expected or maybe point me in the right direction to get this working I would greatly appreciate it! Thank you.