Regular Expressions to Match Compilation Errors for PGI

General questions about using TextPad

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

Post Reply
mmihajlovic
Posts: 7
Joined: Thu Mar 25, 2004 10:12 pm

Regular Expressions to Match Compilation Errors for PGI

Post by mmihajlovic »

I am using PGI compilers and just seem to be unable to assign Regular Expressions to Match Compilation Errors. Here is the example of error:

PGFTN-S-0023-Syntax error - unbalanced parentheses (C:\usr\SOURCE\DATES.F: 7)

and this is what I use:

^.+([A-Za-z]:[^:]+): +([0-9]+)

tried

^.+\(([A-Za-z]:[^:]+): +([0-9]+)\)

but no luck. I am NOT using POSIX regexp option in my Pref->Editor setup.
ben_josephs
Posts: 2461
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

Your second regex does works, but it assumes Posix regex syntax.

If you must use non-Posix syntax (not recommended), swap the back-slashed and non-back-slashed parentheses.
mmihajlovic
Posts: 7
Joined: Thu Mar 25, 2004 10:12 pm

Post by mmihajlovic »

[quote="ben_josephs"]Your second regex does works, but it assumes Posix regex syntax.

If you must use non-Posix syntax (not recommended), swap the back-slashed and non-back-slashed parentheses.[/quote]

You are right. POSIX works. I guess I will use it for my other compiler need too, just need to do some editing.

Thanks.
Post Reply