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-06 14:42:22


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

  * status: closed => reopened
  * resolution: fixed =>

Comment:

 Hmmm, still not sure about this. The documentation now states:
 {{{
 \Z Matches a zero-width assertion consisting of an optional sequence of
 newlines
 at the end of a buffer: equivalent to the regular expression (?=\v*\z).
 }}}
 However, a few lines earlier, we have:
 {{{
 a "buffer" in this context is the whole of the input text that is being
 matched
 against.
 }}}
 In that case, shouldn't my sample code above result in "1\r2A" rather than
 "1\r2A\rA\rA"?

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