python check pattern in string
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/5319922/python-check-if-word-is-in-a-string">Python - Check If Word Is In A String.</a>  </p>
</blockquote>



<p>i have a string which is a url e.g.</p>

<pre><code>my_url = "http://mysite.com/somefolder/somefile"
</code></pre>

<p>I want check if "somefolder" is in the <code>my_url</code> file</p>

<p>how do I do that?</p>
