Juice25
December 26, 2011, 12:25pm
1
I have a bunch of music MP3 files in a folder. Some of them have their title tag set as, for example:
Back Up ( Feat. xx) ( Album Version)
I want to create an action that will define, if title tag has two pairs of round brackets "()", the second pair should be replaced with square ones "[]"
Back Up ( Feat. xx) [ Album Version]
Is it possible to create such action (expression) ?
create an action for regular exp.
Reg exp: (.+([^(]+)[^)]+)(([^(]+))$
replace with: $1 [$2]
im on my phone so test this on a single file first. Any problems please report back.
DetlevD
December 26, 2011, 1:44pm
3
Action: Format value
Field: TITLE
Formatstring: $regexp ( %TITLE% , ' ^([^(]+?)\s(([^(]+?))\s(([^(]+?))$ ' , ' $1 ($2) [$3] ' )
From:
AAA (BBB) (CCC)
To:
AAA (BBB) [CCC]
Filter:
TITLE MATCHES "^([^(]+?)\s\(([^(]+?)\)\s\(([^(]+?)\)$ "
Other approach:
Begin Action Group Test_2011#20111226.Test.Round.Square.Brackets
Action #1
Actiontype 7: Import tag fields (guess values)
Source format __: %TITLE%
Guessing pattern: %TEMP1%÷(%TEMP2%)÷(%TEMP3%)
Action #2
Actiontype 5: Format value
Field ______: TITLE
Formatstring: %TEMP1%'÷('%TEMP2%')÷['%TEMP3%']'
Action #3
Actiontype 9: Remove fields
Fields to remove (semicolon separated): TEMP1;TEMP2;TEMP3
Note: Replace each special ÷ character with one space character.
End Action Group Test_2011#20111226.Test.Round.Square.Brackets (3 Actions)
DD.20111226.1600.CET
Juice25
December 26, 2011, 4:28pm
4
Thanks a lot for your help, guys! This is exactly what I wanted to see