I'm still playing about trying to validate an url
www(dot)something(dot)something !
I thought this would work but know
if (ereg("^(w{3})(\\.)([a-zA-Z]+)(\\.)([a-z]{2,4})$", $str))
can anyone explain why not ???
^(w{3}) = three w at start of string ??
(\\.) = literal dot ??
([a-zA-Z]+) match any word with letters ??
(\\.) = literal dot ??
([a-z]{2,4})$ = at least 2 leters eg de but upto 4 eg info
but it doesn't !
thanks in advance
john
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php