27 May
2004
27 May
'04
12:44 p.m.
this inocent code throws an exception:
static const regex rpath( "Return-Path:(.*?)Received: ",
regex_constants::icase );
according to http://www.boost.org/libs/regex/doc/syntax.html this is how
non-gready repeats are specified.
Can anybody figure out what is wrong?
Yes, you need to tell the lib that it's a perl expression: static const regex rpath( "Return-Path:(.*?)Received: ", regex_constants::perl|regex_constants::icase ); John.