I was wondering how to format a field based on a string that occurs after a specific set of characters in the filename.
Ex.) filename: "artistName (charSequence desiredString)- songName.mp3"
I would like to use the desired string as a certain field
thanks alot
This is an attempt that does not respect the content of 'charSequence' but looks only at the structure of the filename string.
Convert | Filename - Tag | ALT+2
Select format string
Formatstring: artistName (charSequence desiredString)- songName.mp3
%dummy% (%dummy% %DESIRED_STRING%)- %dummy%
Preview
DESIRED_STRING | desiredString
DD.20090615.1012.CEST
This is an attempt that does not respect the content of 'charSequence' but looks only at the structure of the filename string.
Begin Actionsgroup masterp
Action #1
Actiontype 5: Format tag field
Field: DESIRED_STRING
Formatstring: $regexp(%_filename%,'^.+?÷(.+?÷(.+?))-÷.+?$',$1)
Note: Replace one special character ÷ with one space character.
End Actionsgroup masterp (1 Action)
If there are many tracks with the same 'charSequence' you may filter your tracklist to show only tracks with this special 'charSequence' and then run the action against the group of selected files.
In this regular expression $regexp(%_filename%,'^.+?÷(.+?÷(.+?))-÷.+?$',$1) the bold red part is the placeholder for 'charSequence'.
DD.20090615.1032.CEST