
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/4d5588fb70211... 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

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/4d5588fb70211...
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.

Well, I did try to use 1.33.0, and when I tried to build with vc6, I got this error: C:\boost_1_33_0\libs\regex\build>nmake -f vc6.mak Microsoft (R) Program Maintenance Utility Version 6.00.9782.0 Copyright (C) Microsoft Corp 1988-1998. All rights reserved. Building Boost.Regex without ICU / Unicode support: Hint: set ICU_PATH on the nmake command line to point to your ICU installation if you have one. NMAKE : fatal error U1073: don't know how to make '../../../boost/regex/config/allocator.hpp' Stop. /Winson On 8/2/06, John Maddock <john@johnmaddock.co.uk> wrote:
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/4d5588fb70211...
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 mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

Winson Yung wrote:
Well, I did try to use 1.33.0, and when I tried to build with vc6, I got this error:
See https://sourceforge.net/tracker/?group_id=7586&atid=107586&func=detail&aid=1... for a fix, but you should be using 1.33.1 not the unpatched 1.33.0 anyway :-) John.
participants (2)
-
John Maddock
-
Winson Yung