Page 1 of 1

Tool Output for PC Lint

Posted: Fri Apr 08, 2016 12:01 pm
by dixonc
Hi,

I need a bit of help with parsing the Tool Output Window. The output is of the form:

EDC.c 569 81 LINT> Warning 571: Suspicious cast

ie. filename row col Rest of line information message.

Using TextPad 7.4 and the following regular expression:

^\(.+\)\s*\(\d+\)\s*\(\d+\).+\n

Had a look through the forums but cannot get it to work (found a post from me saying how to do it but it no longer works). Should it contain the full path? The working folder is where the files are.

Posted: Fri Apr 08, 2016 9:49 pm
by ben_josephs
You're using an old style of regular expression that was abandoned in TextPad 7.

But it wouldn't have worked anyway, because the first .+ will gobble up as much of the text, including spaces, as it can.

Try

Code: Select all

(.+?)\s+(\d+)\s+(\d+)

Posted: Mon Apr 11, 2016 2:43 pm
by dixonc
Great - works like a charm.

Thanks,

Chris