JavaScript: invalid quantifier when searching URL string for '?'
<p>I just want to test the URL for a question mark ? however I keep getting an invalid quantifier error message...</p>

<pre><code>alert(window.location.href.search('?'));
</code></pre>

<p>I then tried things like...</p>

<pre><code>alert(window.location.href.search('\?'));
</code></pre>

<p>/</p>

<pre><code>alert(window.location.href.search(\?));
</code></pre>

<p>...without any luck.</p>
