Hi,
I didn't know that there's this option. I'm just working a few days with cb.
The original error-regexp in this setting is
([][{}() \t#%$~A-Za-z0-9_:+/\.-]+)\(([0-9]+).:[ \t](.*)
- why is it allowed here to *not* backslash the first brackets and braces and the slash? Better to say, the regexp is not working when I backslash them!
- why is the backslashed line-number-brace not closed with its backslashed pendant but with a dot? That was really confusing since I thought there is something missing.
Ok, I tried to insert an unnamed group matching the space and the (col. ##)
(?:[ \t]\(col\.[ \t][0-9]+\))?
My complete line is then something like
([][{}() \t#%$~A-Za-z0-9_:+/\.-]+)\(([0-9]+)\)(?:[ \t]\(col\.[ \t][0-9]+\))?:[ \t](.*)
This is not working since it seems that here it is not allowed to use unnamed groups with (?:foobar). The problem is that I need that when I want to say the the error-msg is always in the third group.
Anyway, using
([][{}() \t#%$~A-Za-z0-9_:+/\.-]+)\(([0-9]+)\)([ \t]\(col\.[ \t][0-9]+\))?:[ \t](.*)
and the Message with index 4 seems to work..
Note that if you really want to use this then you have to change it in the remark and warnings, ... too. Otherwise this stuff runs through and is matched as an error.
Cheers
Patrick