Shawnny Canuck wrote:I used the RegEx given in my original post to do so and it worked so I am a little confused with your statement that it does not work. I also just tested it again in BRU without issue. My file format is as follows:
12345678 - TITLE 1 - TITLE 2
and after running the RegEx in my original post and using TITLE 2 as the keyword match my files were renamed to:
01 - 12345678 - TITLE 1 - TITLE 2
I'm sorry for the confusion but in your first post you only mentioned file names with the format "TITLE 1 - TITLE 2 - TITLE 3", the regex you gave ^(.+TITLE 2)$ would not work with that because your Regex requires the "TITLE 2" to be at the end of the file name.
The $ sign signifies the end of the file-name, so with "TITLE 2" immediately before the $ sign only file-names with "TITLE 2" at the end of the file-name will be matched.
It would however work with "TITLE 1 - TITLE 2" because in this case "TITLE 2" is at the end of the file name.
Shawnny Canuck wrote:After looking at your Regex would I have been better off using:
FIND: (.*TITLE 2.*)
REPLACE: 01 - \1
That depends on what you wanted.
The difference is that the Regex you used ^(.+TITLE 2)$ would only match a file-name with "TITLE 2" at the end of the file name, whereas the regex (.*TITLE 2.*) will match any file-name that contains "TITLE 2" in any position.