<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://compusofia.com/w/index.php?action=history&amp;feed=atom&amp;title=Module%3AMultiReplace%2Fdoc</id>
	<title>Module:MultiReplace/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://compusofia.com/w/index.php?action=history&amp;feed=atom&amp;title=Module%3AMultiReplace%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://compusofia.com/w/index.php?title=Module:MultiReplace/doc&amp;action=history"/>
	<updated>2026-07-17T09:48:31Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://compusofia.com/w/index.php?title=Module:MultiReplace/doc&amp;diff=12440&amp;oldid=prev</id>
		<title>Majestix: Created page with &quot;{{Documentation subpage}} {{high use}} {{lua|Module:{{#ifeq:{{NAMESPACE}}|Module|Error|MultiReplace}}}} {{For-text 	| 1 = a function to search for multiple patterns 	| 2 = {{mfl|string2|matchAny}} 	| 3 = a function to replace multiple parameters at once 	| 4 = {{mfl|params|mapping_by_replacing}} }}  Replaces matches of multiple patterns in a given string with given replacements. For each replacement instance, the pattern matching &#039;&#039;&#039;at the lowest position&#039;&#039;&#039; is chosen. I...&quot;</title>
		<link rel="alternate" type="text/html" href="https://compusofia.com/w/index.php?title=Module:MultiReplace/doc&amp;diff=12440&amp;oldid=prev"/>
		<updated>2026-06-18T10:15:46Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Documentation subpage}} {{high use}} {{lua|Module:{{#ifeq:{{NAMESPACE}}|Module|Error|MultiReplace}}}} {{For-text 	| 1 = a function to search for multiple patterns 	| 2 = {{mfl|string2|matchAny}} 	| 3 = a function to replace multiple parameters at once 	| 4 = {{mfl|params|mapping_by_replacing}} }}  Replaces matches of multiple patterns in a given string with given replacements. For each replacement instance, the pattern matching &amp;#039;&amp;#039;&amp;#039;at the lowest position&amp;#039;&amp;#039;&amp;#039; is chosen. I...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
{{high use}}&lt;br /&gt;
{{lua|Module:{{#ifeq:{{NAMESPACE}}|Module|Error|MultiReplace}}}}&lt;br /&gt;
{{For-text&lt;br /&gt;
	| 1 = a function to search for multiple patterns&lt;br /&gt;
	| 2 = {{mfl|string2|matchAny}}&lt;br /&gt;
	| 3 = a function to replace multiple parameters at once&lt;br /&gt;
	| 4 = {{mfl|params|mapping_by_replacing}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Replaces matches of multiple patterns in a given string with given replacements. For each replacement instance, the pattern matching &amp;#039;&amp;#039;&amp;#039;at the lowest position&amp;#039;&amp;#039;&amp;#039; is chosen. If there are multiple such patterns, then the one specified earliest in the pattern list is chosen.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
 {{((}}{{#ifeq:{{NAMESPACE}}|Module|&amp;amp;#35;invoke:MultiReplace{{!}}main|MultiReplace}}{{!}}&amp;#039;&amp;#039;input&amp;#039;&amp;#039;|plain=yes&amp;lt;small style=&amp;quot;font-family:sans&amp;quot;&amp;gt; (optional)&amp;lt;/small&amp;gt;|&amp;#039;&amp;#039;pattern1&amp;#039;&amp;#039;| &amp;#039;&amp;#039;replacement1&amp;#039;&amp;#039;|&amp;#039;&amp;#039;pattern2&amp;#039;&amp;#039;|&amp;#039;&amp;#039;replacement2&amp;#039;&amp;#039;... {{))}}&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;code&amp;gt;plain=yes&amp;lt;/code&amp;gt; is specified, then the patterns and replacements are treated as plain text, otherwise as [[mw:Extension:Scribunto/Lua reference manual#mw.ustring.gsub|Lua Unicode patterns]].&lt;br /&gt;
&lt;br /&gt;
An equals sign in a pattern will trigger an &amp;#039;&amp;#039;Unpaired argument&amp;#039;&amp;#039; error. Use  {{tlx|{{=}}}}, which expands to an equals sign that will not be interpreted.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{sandbox other||&lt;br /&gt;
[[Category:String manipulation templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Majestix</name></author>
	</entry>
</feed>