DPL:Manual - dplreplace
From FollowTheScore
Manual | dplreplace |
Syntax
{{#dplreplace:text|pattern|replacement}}
Effect
Replaces the given pattern within the text by replacement.
pattern is a regular expression as defined by php preg_replace().
replacement may contain references to matching parts.
Example
{{#dplreplace:abrakadabra|ab|AB}} returns: ABrakadABra
{{#dplreplace:abrakadabra|a(.)|A\1}} returns: AbrAkadabra