find out the String is url
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/285619/how-to-detect-the-presence-of-url-in-a-string">How to detect the presence of URL in a string</a>  </p>
</blockquote>



<p>Is there a way to find out user entered text is webiste url .</p>

<p>For example if user entered</p>

<pre><code>www.yahoo.com

www.google.fr
</code></pre>

<p>can we detect it is a url String ?</p>

<p>thanks </p>
