The ereg() is not is not a a Perl Compatible regexp element!
try using preg_match() instead!

"Andrew Perevodchik" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Why doesn't this simple example work?
>
> ereg ("aaa(?:bbb|ccc)aaa", $string);
>
> It causes an error. However "?:" command is
> documented in a manual of my version of PHP4.
>
> --
> Andrew Perevodchik
> [EMAIL PROTECTED]
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to