Regular Expression to match output

General questions about using TextPad

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

Post Reply
Bill Tepe

Regular Expression to match output

Post by Bill Tepe »

Can someone explain to me how to set up a regular expresion to match output to be able to jump to lines with errors from a clipper compile. Following is a sample of a compile when done with a Compile tool.

Also, can someone tell me what the Registers: File, Line and Column are used for in doing this.

I have Textpad 4.4.0 32 bit edition.

Thanks for your help... Bill

CA-Clipper (R) 5.3b (Rev. 338)
Copyright (c) 1985-1996, Computer Associates International, Inc.
Microsoft C Floating Point Support Routines
Copyright (c) Microsoft Corp 1984-1993. All Rights Reserved.
308K available
Compiling F:\WOPR\new\CARRSET.PRG
F:\WOPR\new\CARRSET.PRG(12) Error C2002 Incomplete statement or unbalanced delimiters
100

1 error

Tool completed successfully
Keith MacDonald

RE: Regular Expression to match output

Post by Keith MacDonald »

Bill,

Try setting the regular expression to:

^\([^(]+\)(\([0-9]+\))

This will save the filename in register 1 and the line number in register 2.

Regards,

Keith MacDonald
Helios Software Solutions
Post Reply