Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 07:48, 28 June 2025 by Mnooseman (talk | contribs) (Created page with "{{documentation header}} {{lua}} Performs multiple text replacement on a string. Replacer term is [https://www.lua.org/pil/20.1.html pseudo-regex]. ==Examples== : This... is a string! : {{tl|replace|<nowiki>This... is a string!| is = was | string = template parameter | . = ! </nowiki>}} :: {{replace|This... is a string!| is = was | string = template parameter | ! = ? }} : {{tl|replace|<nowiki>This... is a string! | [A-Z] = X | [a-z] = _ | [!.] = ^ </nowiki>}} :: {{repl...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This is the documentation page. It should be transcluded into Template:Replace. See Template:Documentation for more information.
This template uses Module:Replace, a script written in Lua.

Performs multiple text replacement on a string. Replacer term is pseudo-regex.

Examples

This... is a string!
{{replace|This... is a string!| is = was | string = template parameter | . = ! }}
Thwas... was a template parameter?
{{replace|This... is a string! | [A-Z] = X | [a-z] = _ | [!.] = ^ }}
X___^^^ __ _ ______^




Contents