Re: regular expressions: HUGE speed differences

From: Date: Sat, 06 Apr 2002 22:29:50 +0000
Subject: Re: regular expressions: HUGE speed differences
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-91889@lists.php.net to get a copy of this message
On Sat, 06 Apr 2002 15:01:24 +0300, Ando <c980775@ttu.ee> wrote: > > (eregi("(<frame[^>]*src[[:blank:]]*=|href[[:blank:]]*=|http-equiv=['\"]refresh['\"] You might want to try using preg_match instead. The PCRE engine should be significantly faster. You might also find the ability to pass an array of expressions would simplify your code significantly. Chris

« previous php.general (#91889) next »