Page 1 of 1

Regular Expressions to Match Compilation Errors for PGI

Posted: Thu Jun 03, 2010 4:31 pm
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.

Posted: Thu Jun 03, 2010 6:19 pm
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.

Posted: Fri Jun 04, 2010 6:01 pm
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.