Boost logo

Boost Users :

From: John Maddock (john_maddock_at_[hidden])
Date: 2003-01-22 07:01:36


> Hi! I am using boost::regex_grep() and boost::regex_search(), and I've
> figured out how to set a given rule to be case-insensitive when I
transform
> it from a string into a rule -- i.e., --
> boost::regex("search[[:space:]]string", boost::regbase::normal |
> boost::regbase::icase)
> This is great. But in many regular expression processing environments,
you
> also have the option to specify case-insensitivity (or sensitivity) within
> the rule string itself. For instance, in Perl, you do it with the /i
switch
> at the end of the rule string, and in some environments you can use (?i)
to
> make the following characters case-insensitive when processed and then
(?-i)
> to switch case sensitivity back on. I didn't see any mention of any such
> thing in the regex documentation. Is this option not available in
> boost::regex? Thanks!

Not at present, however you're the second person to have asked in the last
couple of months, so it's moving up my long todo list :-)

John Maddock
http://ourworld.compuserve.com/homepages/john_maddock/index.htm


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