RegExp in preg_match function returning browser error
The following function breaks with the regexp I've provided in the $pattern variable. If I change the regexp I'm fine, so I think that's the problem. I'm not seeing the problem, though, and I'm not receiving a standard PHP error even though they're turned on. function parseAPIResults($results){ //Takes results from getAPIResults, returns array. $pattern = '/\[(.|\n)+\]/'; $resultsArray = preg_match($pattern, $results, $matches); } Firefox 6: The connection was reset Chrome 14: Error 101 (net::ERR_CONNECTION_RESET): The connection was reset. IE 8: Internet Explorer cannot display the webpage