jQuery if url first segment contains
<p>if url contains like this and I want to if segment1 equals something then do this...</p>

<pre><code>http://stackoverflow.com/segment1/segment2
</code></pre>

<p>like:</p>

<pre><code>if (segment1 = 'anyword')
{
 ..then do this
}
</code></pre>

<p>something like that?</p>
