Re: [Boost-bugs] [Boost C++ Libraries] #3899: Regex: Bug in handling of "\Z"

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3899: Regex: Bug in handling of "\Z"
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-02-04 19:00:41


#3899: Regex: Bug in handling of "\Z"
-------------------------------------------------+--------------------------
 Reporter: Keith MacDonald <keith@…> | Owner: johnmaddock
     Type: Bugs | Status: new
Milestone: Boost 1.43.0 | Component: None
  Version: Boost 1.42.0 | Severity: Problem
 Keywords: |
-------------------------------------------------+--------------------------

Comment(by johnmaddock):

 Strange, works for me, given:

     std::string s = "1\r2\r3";
     regex re("\\Z");

 Then

     std::string s2 = regex_replace(s, re, "[end]");

 results in "1\r2\r3[end]" in s2.

 Do you have a test case?

 BTW \r and \n are intentionally treated as equivalent.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3899#comment:1>
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:02 UTC