Re: [PHP] preg_match bug

2003-08-26 Thread Christian Calloway
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

Re: [PHP] preg_match bug

2003-08-26 Thread Curt Zirzow
* 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

Re: [PHP] preg_match bug

2003-08-26 Thread Christian Calloway
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

Re: [PHP] preg_match bug

2003-08-26 Thread Christian Calloway
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

Re: [PHP] preg_match bug

2003-08-26 Thread Christian Calloway
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

Re: [PHP] preg_match bug

2003-08-26 Thread Curt Zirzow
* 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.

Re: [PHP] preg_match bug

2003-08-26 Thread Curt Zirzow
* 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

Re: [PHP] preg_match bug

2003-08-26 Thread Christian Calloway
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

Re: [PHP] preg_match bug

2003-08-26 Thread John W. Holmes
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/