Posted by Michael Fesser on 01/28/07 21:45
..oO(Sam)
>When I do
>
>$domainName = "google.com";
>$res = ereg('#^(([a-z0-9][-a-z0-9]*?[a-z0-9])\.)+[a-z]{2,6}$#',
>$domainName)
>
>res was false :( and I got this warning
>
>Warning: ereg() [function.ereg]: REG_BADRPT
Forget ereg*(), use the PCRE functions instead. They are much more
flexible and the preferred regex engine in PHP 6.
Micha
Navigation:
[Reply to this message]
|