Re: [Boost-bugs] [Boost C++ Libraries] #589: regex_replace bug

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #589: regex_replace bug
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-07-07 18:09:08


#589: regex_replace bug
---------------------+------------------------------------------------------
  Reporter: nobody | Owner: johnmaddock
      Type: Bugs | Status: closed
 Milestone: | Component: regex
   Version: None | Severity: Problem
Resolution: fixed | Keywords:
---------------------+------------------------------------------------------

Old description:

> {{{
> boost::tregex e("(.*)");
> strResult = boost::regex_replace("a", e, "$1b");
>
> strResult now equals "abb", but should be "ab".
>
> My e-mail: kdn01003_at_[hidden]
> }}}

New description:

 {{{
 boost::tregex e("(.*)");
 strResult = boost::regex_replace("a", e, "$1b");

 strResult now equals "abb", but should be "ab".

 My e-mail: kdn01003_at_[hidden]
 }}}

--
Comment (by johnmaddock):
 This is now fixed in Trunk provided match_posix is passed to regex_replace
 or regex_iterator.
-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/589#comment:6>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:10 UTC