Javascript regex replace - swap position
<p>I need a javascript regex replace function to turn</p>

<pre><code>&lt;font anything_possible&gt;&lt;span anything_different_possible&gt;&lt;/span&gt;
</code></pre>

<p>into</p>

<pre><code>&lt;span anything_different_possible&gt;&lt;/span&gt;&lt;font anything_possible&gt;
</code></pre>

<p>I tried many combinations but failed. Any help appreciated.</p>
