Re: regexp (?:

From: Date: Tue, 11 Sep 2001 10:39:25 +0000
Subject: Re: regexp (?:
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-66896@lists.php.net to get a copy of this message
The ereg() is not is not a a Perl Compatible regexp element! try using preg_match() instead! "Andrew Perevodchik" <ok@naverex.kiev.ua> wrote in message news:1223489399.20010911123204@naverex.kiev.ua... > 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 > ok@naverex.kiev.ua >

« previous php.general (#66896) next »