JavaScript Regex question
<p>All,</p>

<p>I have following function to check for invalid symbols entered in a text box and return true or false. How can I modify this function to also check for occurrences like http:// and https:// and ftp:// return false if encountered ?</p>

<pre><code>function checkURL(textboxval) {
   return ! (/[&lt;&gt;()#'"]|""/.test(textboxval));
}
</code></pre>

<p>Thanks</p>
