Re: preg_match bug

From: Date: Tue, 26 Aug 2003 02:05:47 +0000
Subject: Re: preg_match bug
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-160711@lists.php.net to get a copy of this message
* Thus wrote Christian Calloway (callowaylc@yahoo.com): > Obviously its an example, otherwise the script wouldn't have even parsed. You provided an example that he had to make certain guesses for why you think php is crashing. > > $regularExpression = '"/<tr > bgcolor="#FFFFFF">(.|\n)+?<\/tr>/'; This still is not right. preg will think your looking for /tr bgcolor= and will complain about the junk after the second ". > > preg_match ($regularExpression, $fileString, $matches) > > This regular expression causes PHP to crash for me, not a parsing error. Please provide an exact sample that will cause php crash. And somebody here will test it for you. Curt -- "I used to think I was indecisive, but now I'm not so sure."

« previous php.general (#160711) next »