Tool Output for PC Lint

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
dixonc
Posts: 54
Joined: Mon Feb 02, 2004 3:05 pm

Tool Output for PC Lint

Post 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.
ben_josephs
Posts: 2461
Joined: Sun Mar 02, 2003 9:22 pm

Post 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+)
dixonc
Posts: 54
Joined: Mon Feb 02, 2004 3:05 pm

Post by dixonc »

Great - works like a charm.

Thanks,

Chris
Post Reply