what is the best way to check if a string exists in another?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1789945/javascript-string-contains">JavaScript: string contains</a>  </p>
</blockquote>



<p>I'm looking for an algorithm to check if a string exists in another.</p>

<p>For example:</p>

<pre><code>'Hello, my name is jonh LOL.'.contains('Hello, my name is jonh'); //true
'LOL. Hello, my name is jonh'.contains('Hello, my name is jonh'); //true
</code></pre>

<p>Thanks in advance. </p>
