Regex(pert) Needed
Posted: Thu Aug 01, 2002 3:34 am
How would I make a regular expression that checked if input was a valid website?
Like
http://www.blah.com would be valid
but i still want urls like:
http://www.blah.com/foo/
http://www.blah.com/foo
http://www.blah.com/
http://www.blah.com/foo/
http://www.blah.com/foo
http://www.blah.com/
http://www.blah.com
http://foo.blah.com
http://foo.blah.com/
to all work..
how would i do this?
sorry if these seems more like "make me a regexp!" :-/ but they totally confuse me
Like
http://www.blah.com would be valid
but i still want urls like:
http://www.blah.com/foo/
http://www.blah.com/foo
http://www.blah.com/
http://www.blah.com/foo/
http://www.blah.com/foo
http://www.blah.com/
http://www.blah.com
http://foo.blah.com
http://foo.blah.com/
to all work..
how would i do this?
sorry if these seems more like "make me a regexp!" :-/ but they totally confuse me