javascript regexp for validating url without http in the beginning
<p>I want to validate a javascript string using regexp for URL.</p>

<p>I don't wan't to force http:// in the beginning.</p>

<p>What is the correct regexp, since I have the next one to include http:</p>

<pre><code>var pattern = /(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&amp;%@!\-\/]))?/;
</code></pre>
