[X] Backreference evaluation inside replacement string


#1

When using regular expression inside title-formatting script (with $regexp() function) backreferences inside replacement string are evaluated after all scripting functions included in replacement are applied.

It makes performing replacements based on a content of backreferences impossible.

This doesn't apply to "Replace with regular expression" action! Action works as it's supposed to: first bacreferences are evaluated, then any existing scripting functions are applied.

Consider regular expression:

Input string: string
Regular expression: .+
Replacement: $if($eql($&,string),x,y)

Action applied to a field having "string" as content returns x while..

$regexp(string,string,$if($eql($&,string),x,y))

..returns y


#2

As fas as I know, nearly all of the Mp3tag scripting functions are not allowed to be used in the replacement part of the function $regexp.
Therefore your example is not a valid expression.

DD.20110607.1950.CEST


#3

What do you mean by "not allowed to"? They work! And I use them extensively.