My understanding is that RegEx will not do this. What will?
My issue, specifically, is extremely messy iTunes genre tags. I would like to merge genre tags that have the same or similar comma separated values, and to merge those values in alphabetical order. I have found scripts that can do this with tab separated lists, but not comma separated strings. I have not been able to find any existing app (or script) that will allow me to merge, for instance:
'Rock, Indie, Soundtrack, Folk, Electronica, Experimental'
with
'Folktronica, Experimental, Soundtrack, Rock, Indie'
to result in
'Experimental, Folktronica, Indie, Rock, Soundtrack'
Another instance might be merging and alphabetizing the genre strings of tracks with classifications such as:
'Harmonica Blues, Electric Blues, Blues'
'Blues, Harmonica Blues, Electric, Harmonica'
'Harmonica, Blues, Electric Blues'
into
'Blues, Electric Blues, Harmonica Blues'
What's my best bet?
tab
or;
to,
inside the script - but the rules how to merge categories/genres... – klanomath Aug 2 '16 at 17:28