List Info

Thread: Matching correct format for web address




Matching correct format for web address
user name
2006-06-22 15:47:00
I need a regex for validation of a web address.

The rules are:

1.  Cannot start with http:// (upper or lowercase)
2.  Can start with www. (doesn't have to start with www.
though)
3.  The actual web address (www.yourdomain.com) must be in
lowercase

Any assistance would be appreciated.

Thanks


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Regex" group.
To post to this group, send email to regexgooglegroups.com
To unsubscribe from this group, send email to
regex-unsubscribegooglegroups.com
For more options, visit this group at http://groups.go
ogle.com/group/regex
-~----------~----~----~----~------~----~------~--~---

Matching correct format for web address
user name
2006-06-23 11:30:57
Try the link
http://regexlib.com/DisplayPatterns.aspx?
cattabindex=1&categoryId=2
It has a good number of patterns related to validating URLs


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Regex" group.
To post to this group, send email to regexgooglegroups.com
To unsubscribe from this group, send email to
regex-unsubscribegooglegroups.com
For more options, visit this group at http://groups.go
ogle.com/group/regex
-~----------~----~----~----~------~----~------~--~---

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )