Regex to match compilation error displayed in several lines
Posted: Fri Dec 29, 2006 2:00 am
In searching the forum, it appears I am not the first to discover that the regex I've written to match a multi-line compiler error message does not enable me to jump to the line with the error.
That is, this regex:
(The registers are set to file:2, line:4, column:5.)
I haven't been able to discover any definitive statement -- neither "this is how to do this" nor "sorry, it can't be done."
Anyone able to say for certain one way or the other?
Thanks,
Roger Sperberg
That is, this regex:
is designed for an error message along these lines:^URL: file:///([A-Z]:.+)\/(.+)\nLine:( *)([0-9]+)\nColumn: ([0-9]+)$
Double-clicking the third line jumps me to the right file (with another tool, the full path worked; here, for some reason I can only get it to work if I supply just the file name, sans path). But I'm brought only to the first column on the first line, not to the right line.Error occurred while parsing document.
Code: 0xc00ce504
URL: file:///C:/Documents%20and%20Settings/sperbergr/My%20Documents/test/a-file.xml
Line: 300
Column: 25
A name was started with an invalid character.
(The registers are set to file:2, line:4, column:5.)
I haven't been able to discover any definitive statement -- neither "this is how to do this" nor "sorry, it can't be done."
Anyone able to say for certain one way or the other?
Thanks,
Roger Sperberg