DPL:Manual - dplreplace

From FollowTheScore
Revision as of 08:29, 13 October 2009 by Gero (talk | contribs) (New page: {{Type Manual|section=dplreplace}} === Syntax === <pre><nowiki> {{#dplreplace:|pattern|replacement|text}} </nowiki></pre> === Effect === Replaces the given ''pattern'' within the ''...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Manual dplreplace

Syntax

  {{#dplreplace:|pattern|replacement|text}}

Effect

Replaces the given pattern within the text by replacement.

pattern is a regular expression as defined by php preg_replace().

Example

 {{#dplreplace:ab|AB|abrakadabra}}
ab