Boost logo

Boost :

From: Jan Hermelink (Jan.Hermelink_at_[hidden])
Date: 2004-12-27 09:00:19


>> boost::regex re("x", boost::regex_constants::icase);
> That should be:
> boost::regex re("x",
boost::regex::perl|boost::regex_constants::icase);

Or boost::regex re("x", boost::regex::normal | boost::regex::icase)

Ok, I have overlooked this statement in the documentation:
"A valid value of type syntax_option_type will always have exactly one
of the elements normal, basic, extended, awk, grep, egrep, sed or perl
set".

My fault - Thank you!

Jan


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk