Hmm.. who knows, Ive wasted to much time on this silly problem. I appreciate
your help Curt, thanks.
"Christian Calloway" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Fixed the problem using "s" pattern modifier: '/regexp/s', without it, it
> still hangs using '(.|\n)' in the pat
* Thus wrote Christian Calloway ([EMAIL PROTECTED]):
> Certainly.
>
> It crashes out when attempting to parse large files. My resource limits are
> set to 20m in the php.ini file, so thats not the issue.
I tried this with a 10MB html file that found 1160 matches. It
might be specific to your html
Fixed the problem using "s" pattern modifier: '/regexp/s', without it, it
still hangs using '(.|\n)' in the pattern.
"Christian Calloway" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Errors are not being logged on my XP Pro box (error logging is on)
>
> "Curt Zirzow" <[EMAIL PROTE
Errors are not being logged on my XP Pro box (error logging is on)
"Curt Zirzow" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> * Thus wrote Christian Calloway ([EMAIL PROTECTED]):
> > Hey I wanted to see if anyone was getting the same problem. Using
preg_match
> > in the following
Certainly.
It crashes out when attempting to parse large files. My resource limits are
set to 20m in the php.ini file, so thats not the issue.
(.|\n)+?%";
$matches = array();
// output number of matches
echo preg_match_all($reg, $fileBuffer, $matches);
?>
"Curt Zirzow" <[EMAIL PROTECTED]> wrot
* Thus wrote Christian Calloway ([EMAIL PROTECTED]):
> 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 = '"/(.|\n)+?<\/tr>/';
This still is not right.
* Thus wrote Christian Calloway ([EMAIL PROTECTED]):
> Hey I wanted to see if anyone was getting the same problem. Using preg_match
> in the following pattern:
>
> "/(.|\n)+?<\/tr>/"
>
> PHP seems to be crashing. I get a "Page cannot be displayed" message from
> the browser. I've come across this
Obviously its an example, otherwise the script wouldn't have even parsed.
$regularExpression = '"/(.|\n)+?<\/tr>/';
preg_match ($regularExpression, $fileString, $matches)
This regular expression causes PHP to crash for me, not a parsing error.
"John W. Holmes" <[EMAIL PROTECTED]> wrote in messa
Christian Calloway wrote:
Hey I wanted to see if anyone was getting the same problem. Using preg_match
in the following pattern:
"/(.|\n)+?<\/tr>/"
You need to escape the double quotes in your string at the very least.
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
9 matches
Mail list logo