How to find url using preg_match in php
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/2762260/detecting-a-url-using-preg-match-without-http-in-the-string">Detecting a url using preg_match? without  in the string</a>  </p>
</blockquote>



<p>I want to find url like,</p>

<pre><code>1.  www.test.com
2.  test.com
3.  .com
</code></pre>

<p>How to find url like above using preg_match in php?</p>
