URL Regular Expression Validator

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top