Boost logo

Boost Users :

From: John Maddock (john_at_[hidden])
Date: 2004-05-27 07:44:56


> 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.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net