URL Regular Expression Validator

  • Thread starter Thread starter astpc.net
  • Start date Start date
A

astpc.net

Hi,

I'm using the following validation expression for an URL:
^(ht|f)tp(s?)\:\/\/[a-zA-Z0-9\-\._]+(\.[a-zA-Z0-9\-\._]+){2,}(\/?)([a-zA-Z0-9\-\.\?\,\'\/\\\+&%\$#_]*)?$

I'm having an issue with url having only 1 dot. for eg
http://schlockmercenary.com

Can anyone pls help me fixed this issue.

Thanks
 
Back
Top