<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://safernicotine.wiki/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Template%3AMultiReplace%2Fdoc</id>
	<title>Template:MultiReplace/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://safernicotine.wiki/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Template%3AMultiReplace%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://safernicotine.wiki/mediawiki/index.php?title=Template:MultiReplace/doc&amp;action=history"/>
	<updated>2026-04-22T00:08:17Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://safernicotine.wiki/mediawiki/index.php?title=Template:MultiReplace/doc&amp;diff=38953&amp;oldid=prev</id>
		<title>imported&gt;DePiep: Category:String manipulation templates</title>
		<link rel="alternate" type="text/html" href="https://safernicotine.wiki/mediawiki/index.php?title=Template:MultiReplace/doc&amp;diff=38953&amp;oldid=prev"/>
		<updated>2021-11-15T08:46:31Z</updated>

		<summary type="html">&lt;p&gt;&lt;a href=&quot;/mediawiki/index.php?title=Category:String_manipulation_templates&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Category:String manipulation templates (page does not exist)&quot;&gt;Category:String manipulation templates&lt;/a&gt;&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;
{{for2|a function to search for multiple patterns|{{ml|String2|matchAny|section=#matchAny}}}}&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;
&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>imported&gt;DePiep</name></author>
	</entry>
</feed>