|
Boost Users : |
Subject: [Boost-users] boost::regex_search upgrade from 1_36 to 1_45
From: EricB (eric.britz_at_[hidden])
Date: 2010-12-14 17:15:31
Hi
I have upgraded my boost to 1_45 (it was 1_36) and since then I have an
error on boost::regex_search
here is the code
std::string regexp = "\\^:\\([^;^]*\\);\\([^;^]*\\);\\([^^]*\\)\\^:";
boost::regex expression(
regexp.c_str()
, boost::regex::basic|boost::regex::icase
);
std::string::const_iterator it_prev = str.begin();
std::string::const_iterator it_end = str.end();
std::string tmp;
while (boost::regex_search(it_prev, what, expression))
{
res = true;
tmp.assign(it_prev,what[0].first);
...
tmp.assign(what[2].first, what[2].second);
...
reading the html doc I can not find how to rewrite this while loop.
I'm not a boost expert, any help would be appreciated.
Thank you
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