Re: Regexp handling

From: Date: Wed, 13 Dec 2000 18:48:59 +0000
Subject: Re: Regexp handling
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-30142@lists.php.net to get a copy of this message
Michael Dearman wrote: > Got it to work with a preg > > $pat = "/([\'\"])(.+)\\1/"; > ^^ > preg_match($pat, $string, $arr); > > But not with the ereg. And preg's seem to be faster anyway. Thanks - I should have thought to try that myself, but since I didn't that's much appreciated. Is there any reason why ereg should have failed, or is this a bug? Mark.

« previous php.general (#30142) next »