Boost logo

Boost Users :

From: Winson Yung (winson.yung_at_[hidden])
Date: 2006-08-01 23:06:09


Hello, I saw the following thread talking about how to set regex to work in
perl extended mode:

http://groups.google.com/group/boost-list/browse_thread/thread/4d5588fb70211e02/2c4a6026becb9bd4?lnk=st&q=&rnum=2#2c4a6026becb9bd4

I am using 1.28.0 and has coded something like this already:

                        boost::RegEx expr(is10k ? keywords_10k[i].m_Key :
                                          keywords_10q[i].m_Key, true);

                        // Pass callback, strings to RegEx library
                        unsigned int result = expr.Grep(cb, pBuf);

question is how do I set this boost::regex_constants::perl like the follow
example:

boost::regex rxBlah("([a-z](?:_?[a-z0-9])*)_dvs",
   boost::regex_constants::perl | boost::regex_constants::icase);

/Winson



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