Regex to match PHP output
Posted: Tue Aug 29, 2006 9:42 pm
I've created a tool to launch PHP scripts (command line interface). Now I'm trying to add a regex (POSIX syntax) so I can double click on errors and jump to the offending line. Errors look like this:
My first attemp was:
I then tried:
... and many other variations... I've tried to escape parenthesis... I've tried everything... to no avail. I always get a "cannot jump to element under cursor" error message. What vital point am I missing?
Code: Select all
Parse error: parse error, unexpected T_STRING in C:\tmp\borrame.php on line 31
Warning: Wrong parameter count for mysql_query() in C:\tmp\borrame.php on line 60Code: Select all
in (.*) on line ([0-9]+)$Code: Select all
.*([0-9]+)$