
11 Apr
2005
11 Apr
'05
9:32 a.m.
Have you tried \2 instead of \1 for the long expression? AFAICS from the documentation <http://www.boost.org/libs/regex/doc/syntax.html>, the first "Forward Lookahead Assert" is still a match, but you want to refer to the second parenthesis, right?
I don't think so: $2 appears after the last backreference, so would be an invalid expression, (forward lookahead asserts don't count as marked sub-expressions - nothing that begins (? does ). John.