Regular Expressions

Magic “between” string – works as long as there’s not any < or > in the string: ([\s\S]*?) Example 1: Replaces all <span xml…></span> with <em></em> <span xml:lang="en-US">([\s\S]*?)</span> <em>$1</em> Example 2: Special Footnotes <span class="Endnote-reference char-style-override">([\s\S]*?)</span> <sup><a href="#_edn$1">$1</a></sup> Example 3: <sup>1</sup> —> Footnote <sup>([\d]*?)</sup> <sup><a href="#_edn$1">$1</a></sup> Example 4a: French Number…