I have tried a lot of different syntaxes, however, it never works.
I would like to rename multiple files with "everything until } (closed bracket)". A closed bracket is part of these filenames.
What is the correct syntax to write in the field "New Syntax" with the checkbox "Regex" checked?
Rename with RegEx feature
Re: Rename with RegEx feature
Please try the following old format:
^(.*?)}(.*?)$
^ = match the start of the filename.
(.*?) = match any character, any number of times and save the match into variable 1.
} = match a literal }
(.*?) = match any character, any number of times and save the match into variable 2.
$ = match the end of the filename.
Please try the following new format:
new text}\2
\2 = recall the match in variable 2.
remove the } if it is not needed
^(.*?)}(.*?)$
^ = match the start of the filename.
(.*?) = match any character, any number of times and save the match into variable 1.
} = match a literal }
(.*?) = match any character, any number of times and save the match into variable 2.
$ = match the end of the filename.
Please try the following new format:
new text}\2
\2 = recall the match in variable 2.
remove the } if it is not needed