More actions
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..." Â |
(No difference)
|
Latest revision as of 07:48, 28 June 2025
[purge]
This is the documentation page. It should be transcluded into Template:Replace. See Template:Documentation for more information.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___^^^ __ _ ______^