Boost logo

Boost Users :

From: Kyle Alons (kalons_at_[hidden])
Date: 2006-04-02 16:32:19


std::string in("hello");
 std::string exprStr("(.*)");
 std::string replStr("goodbye$1");

 boost::regex expr(exprStr);
 std::string out(boost::regex_replace(in, expr, replStr));

 printf("%s", out.c_str());

In Boost 1.31, this outputs "goodbyehello".

In 1.32+, it outputs "goodbyehellogoodbye".

Is it a bug, a by-design breaking change, or? Thanks.

-- 
---------------------
Kyle Alons
http://www.kinook.com

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