title: c# regex url validation
body: <p>I'm using below regex for url validation.</p>
  
  <pre><code> public static readonly string UrlValidation = @"^((http|ftp|https|www)://)?([\w+?\.\w+])+([a-zA-Z0-9\~\!\@\#\$\%\^\&amp;\*\(\)_\-\=\+\\\/\?\.\:\;\'\,]*)?$";
  </code></pre>
  
  <p>But,if i input google..com.my, the result is valid, but actually is not. How to amend the regex to make it not valid if input 2 dots.</p>