title: Regular Expression for URL validation
body: <p>I have written regex to validate URL which could be either like</p>
  
  <pre><code>google.com
  
  www.google.com
  
  http://www.google.com
  
  https://www.google.com
  </code></pre>
  
  <p>I have used </p>
  
  <pre><code>Regex urlRx = new Regex(@"^(http|ftp|https|www)://([\w+?\.\w+])+([a-zA-Z0-9\~\!\@\#\$\%\^\&amp;\*\(\)_\-\=\+\\\/\?\.\:\;\'\,]*)?$", RegexOptions.IgnoreCase);
  </code></pre>
  
  <p>It works for http &amp; https.It is not working for google./com &amp; www.google.com.</p>
  
  <p>Please help me to solve this.</p>
  
  <p>Thanks</p>