Diego020 wrote:if its not too much trouble could you explain the different parts of the code so i can understand it better?
Artist - Title [quality][year]
RegEx (1)
Match: ^
(.*- )(.*)\[(\d{4})Replace: \1\3 - \2
Match:^ : Denotes the start of the string.
(.*- ) This is the first group
Group 1, the .*- matches any character or space any number of times up-to and including the - (hyphen followed by a space)
(.*) This is the second group
Group 2, the .* matches any character or space any number of times.
\[ This stops group 2 from matching anything after and including the first square bracket, this is not grouped because it's not needed in the replace.
(\d{4}) This is the last group
Group 3 and matches the date, the \d catches a digit and the {4} tells the regex engine to catch the previous character 4 times, so \d{4} matches 4 digits.
In the Replace box, to use a group you write the group number preceded with a back-slash so group 1 is \1.
Replace:First in the replace box we have \1 which is
group 1 (Artist).
Second we have \3 which is
group 3 (the 4 digits that make up the year).
Third we have - (space hyphen space), this is the space hyphen space after the year.
Lastly is \2 which is
group 2, this is the Title and Quality.
Basically it's just a matter of breaking the entire file name into reusable groups (groups are in parenthesis and numbered according to their position in the regex), then placing those groups in the replace box in the order you want them, you can place literal characters in-between the groups, for instance group 3 is followed by space hyphen space then group 2 (\3 - \2).