Hi,
In part of my tagger file naming script, I do the following to add release comments, if any:
$noop(release disambig?)
$if(%_releasecomment%, \(%_releasecomment%\))
Since last April, it seems for Led Zeppelin bootlegs at least, it is also being used for search hints. I need to strip out any leading text and only return what is after a semicolon. In Tool Command Language from an alternate naming script I use, I do the following regular expression:
# Remove the useless search assistance info that clouds the purpose
# of disambiguation (aka %_releasecomment% in Picard) on a
# release title.
#
proc processDisambig {disambig} {
set d ""
if {$disambig eq ""} return ""
regexp {^(?:.*; )(.*)} $disambig dummy d
return $d
}
I want to implement the same in a tagger script. Would I choose $rsearch or $rreplace? If someone could help get me started, I would greatly appreciate it, thanks.
An example of the offending text is in this edit, that will most likely fail