|
-
May 25th, 2006, 08:58 AM
#1
Thread Starter
PowerPoster
regex to validate URL[solved]
Hi.
I found a few regex on the net to validate a url however it doesnt quite work for me.
I want to make sure that the url is validate on this condition:
optional 'www' beginning
ends with a . (we do not care about if it ends in co.uk or com as in the future who knows what other domains will be available)
any ideas?
I also want to make sure that something like this is invalid:
spaces in the url
http://.xxxxxx
that dot should not be there...invalid url
the one I am currently using which appears to work reasonably is this one however it does have it's flaws.
^(http|ftp)://(www\.)?.+\.
Last edited by Techno; May 25th, 2006 at 10:27 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|