This template is used on approximately 221,000 pages. To avoid major disruption and server load, any changes should be tested in the template's /sandboxor/testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them.
For a function to search for multiple patterns, see {{#invoke:String2|matchAny}}.
Replaces matches of multiple patterns in a given string with given replacements. For each replacement instance, the pattern matching at the lowest position is chosen. If there are multiple such patterns, then the one specified earliest in the pattern list is chosen.