Need quick help on this regex..
Posted: Thu May 04, 2006 1:07 pm
I am building a regEx for URL validation and everything works great except one part. Here is my RegEx:
^((http)://)([[:alnum:]\-\.])+(\.)([[:alnum:]]){2,4}([[:alnum:]/+_\.~\-]*)$
Problem is it is allowing this:
http://...mysite.com
**Notice the dots after the http://
Any idea how I can alter my RegEx to cure this? Thanks for your help and time!
^((http)://)([[:alnum:]\-\.])+(\.)([[:alnum:]]){2,4}([[:alnum:]/+_\.~\-]*)$
Problem is it is allowing this:
http://...mysite.com
**Notice the dots after the http://
Any idea how I can alter my RegEx to cure this? Thanks for your help and time!