Hello
I'd like to validate an URL, passed as a string
I had the following ereg, it's working fine but only with "1st level"URL's (ie www.blah.com or http://www.blah.com or anything without a /mydoc.html)
$ret = ereg(
'(http://){0,1}'.
'(([a-z0-9_]|\-)+\.)+'.
'[a-z]{2,4}$',
$string);
So has anyone some ereg ready made for checking complete urls? (not necessarily if the page exists, just the string...)
thanks
greg