![]() |
|
regular expression in tagUpdate - Printable Version +- MinimServer Forum (https://forum.minimserver.com) +-- Forum: MinimServer (/forumdisplay.php?fid=1) +--- Forum: Music Tagging (/forumdisplay.php?fid=9) +--- Thread: regular expression in tagUpdate (/showthread.php?tid=1931) |
regular expression in tagUpdate - Hafer - 25-10-2014 17:20 As far as I understood, tagUpdate aims at rewriting tags. An example of this from the user guide: Quote:@ARTIST=John Eliot Gardiner, The Monteverdi Choir Question: Is it possible to use regular expressions or something like that for tag rewriting? An example would be: Quote:@ARTIST=#1, #2 which would have the same result as above, but not only for Mr. Gardiner. Background: I've LOTS of tagged classical music for which no conductor, orchestra and soloists tags are used, but ARTIST is composed of [CONDUCTOR] ", " [ORCHESTRA] "(" [SOLOISTS] ")". A rewriting rule such as Quote:@ARTIST=#1, #2 ( #3 ) would be very handy ![]() Thanks in advance, Hafer RE: regular expression in tagUpdate - simoncn - 25-10-2014 17:32 (25-10-2014 17:20)Hafer Wrote: As far as I understood, tagUpdate aims at rewriting tags. An example of this from the user guide: This isn't possible. Quote:Background: I've LOTS of tagged classical music for which no conductor, orchestra and soloists tags are used, but ARTIST is composed of [CONDUCTOR] ", " [ORCHESTRA] "(" [SOLOISTS] ")". A rewriting rule such as You can use tag formattting to do this. RE: regular expression in tagUpdate - Hafer - 25-10-2014 17:55 (25-10-2014 17:32)simoncn Wrote:Quote:Background: I've LOTS of tagged classical music for which no conductor, orchestra and soloists tags are used, but ARTIST is composed of [CONDUCTOR] ", " [ORCHESTRA] "(" [SOLOISTS] ")". A rewriting rule such as Sorry, I didn't get this; I want to decompose a given string (consisting of conductor, Orchestra and soloists (in brackets)) into pieces and assign them to CONDUCTOR, ORCHESTRA and SOLOISTS. From the user guide I can't find a clue how to do that with tagFormat. Any hints? RE: regular expression in tagUpdate - simoncn - 25-10-2014 17:59 (25-10-2014 17:55)Hafer Wrote: Sorry, I didn't get this; I want to decompose a given string (consisting of conductor, Orchestra and soloists (in brackets)) into pieces and assign them to CONDUCTOR, ORCHESTRA and SOLOISTS. From the user guide I can't find a clue how to do that with tagFormat. Any hints? You're correct that tagFormat doesn't do decomposition. You would need to use a tagging program such as Mp3tag to do the decomposition using regular expressions and then use tagFormat to combine the decomposed elements however you wish. RE: regular expression in tagUpdate - Hafer - 26-10-2014 23:36 (25-10-2014 17:59)simoncn Wrote: You would need to use a tagging program such as Mp3tag to do the decomposition using regular expressions and then use tagFormat to combine the decomposed elements however you wish. After (unsuccessful) trying to get around that I took a breath and simply did it. Took me the better part of the weekend but got me where I wanted to be.Thx, Hafer |