
Winson Yung wrote:
Hello, I saw the following thread talking about how to set regex to work in perl extended mode:
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);
You don't: the RegEx class is deprecated (and has been for several releases) and Boost-1.28 is hopelessly out of date anyway (3 years or so?). Sorry, John.