title: Validating URL with cgi
body: <p>I need a regular expression that would let me validate Url. I found this one:</p>
  
  <pre><code>"^(http(?:s)?\:\/\/[a-zA-Z0-9\-]+(?:\.[a-zA-Z0-9\-]+)*\.[a-zA-Z]{2,6}(?:\/?|(?:\/[\w\-]+)*)(?:\/?|\/\w+\.[a-zA-Z]{2,4}(?:\?[\w]+\=[\w\-]+)?)?(?:\&amp;[\w]+\=[\w\-]+)*)$"
  </code></pre>
  
  <p>But my problem is that besides regular urls, I need to allow .cgi paths, without "http(s)", like this:</p>
  
  <p>123.45.678.543:30/cgi-bin/blah/blah.cgi</p>
  
  <p>Could you please help me figure out how I could add this to the expression above? 
  Thanks.</p>