Boost logo

Boost Users :

From: John Maddock (john_at_[hidden])
Date: 2006-08-02 04:38:17


Winson Yung wrote:
>> 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);

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.


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