JavaScript split function - use of escape characters?
<p>The following two examples do the same thing.</p>

<p>I was wondering why Option 1 is given in a code example I found and not Option 2?</p>

<p>What is the significance of the forward/backward slashes in '/\&amp;/'</p>

<p>Option 1.</p>

<pre><code>    var pairs = qString.split(/\&amp;/);
</code></pre>

<p>Option 2.</p>

<pre><code>    var pairs = qString.split('&amp;');
</code></pre>
