jQuery if url matches
<p>I want to reach something like this:</p>

<pre><code>if(window.location.href.indexOf("http://stackoverflow.com/questions/")){
 ... then to this
}
</code></pre>

<p>but it still runs when url looks like this <code>http://stackoverflow.com/questions/ask/</code></p>
