There are some filters that allow you to perform comparisons or searches for components. This is the case for the "|match" and "|replace" filters.
-
matchis used to test if the argument passed verifies a regular expression passed as the filter’s second argument. -
replaceis used to replace text, and is also followed by a regular expression.
[(#TAG|match{text})]
[(#TAG|replace{text,other text})]
These filters also accept two further parameters, which are the possible modifier argument to the regular expression ("UimsS" by default), and the number the of surrounding parentheses which is "0" (zero) by default:
[(#BALISE|match{text, modifier, capture})]
[(#BALISE|replace{text,other text, modifier, capture})]