Re: [PHP4BETA] Problem with preg_match_all

From: Date: Thu, 27 Jan 2000 17:39:18 +0000
Subject: Re: [PHP4BETA] Problem with preg_match_all
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-9477@lists.php.net to get a copy of this message
On Wed, 26 Jan 2000, Vadim Tkachenko wrote: > I have an html file (size 4 Kb) > I put this file to variable $result; > > When I try to use preg_match_all as below > $fnd=preg_match_all("|\<td bgcolor=\".*\" width=\".*\" > class=\".*\"\>\<b\>(.*)\<\/b\>\<\/td\>.*\<td > width=\".*\" align=\".*\" > class=\".*\"\>(.*)\<\/td\>\<td width=\".*\" > align=\".*\" > class=\".*\"\>(.*)\<\/td\>\<td width=\".*\" > align=\".*\" > class=\".*\"\>(.*)\<\/td\>|msiU",$results,$brances); > > it seems that preg_match_all runs in endless loop. > > By the present moment the method runs about 17 min. What does $results look like? Can you simplify it a bit still reproducing the problem? -Andrei

« previous php.version4 (#9477) next »