Help me validate url which should even accept .me domains
<pre><code>var tomatch= /http:\/\/[A-Za-z0-9\.-]{3,}\.[A-Za-z]{3}/
     if (tomatch.test(theurl))
     {
         window.alert("URL OK.");
         return true;
     }
</code></pre>

<p>I tried this regular expression code to validate url .</p>

<p>When I try to validate it with <a href="http://about.me" rel="nofollow">http://about.me</a> it showing error</p>
