Re: [PHP] help with preg_match

2012-06-04 Thread Chris Purves
is capitalized, so I used: preg_match('/[A-Z][^]*end/', $curl_response, $matches); Thanks for your help. -- Chris Purves The eyes are the groin of the head. Dwight Schrute -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] help with preg_match

2012-06-03 Thread Chris Purves
('/[^]*end/',$curl_response,$matches); I want to match 'end' and everything before it that is not ''. The problem appears to be with the ''. I have tried escaping (\), but it didn't make a difference. The php script hangs when it tries to run this function. -- Chris Purves There's a time