Subject: [Boost-bugs] [Boost C++ Libraries] #4721: multiple capture groups with the same name break regex
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-10-08 12:33:19
#4721: multiple capture groups with the same name break regex
---------------------------------------+------------------------------------
Reporter: robin.snyder@⦠| Owner: johnmaddock
Type: Bugs | Status: new
Milestone: To Be Determined | Component: regex
Version: Boost 1.44.0 | Severity: Problem
Keywords: regex named capture group |
---------------------------------------+------------------------------------
If I have a named capture group that has the possibility of matching
multiple times, the named group is always an empty string.
See attached file for full example of it working / breaking
Notice that in the case where broke==true that the group names are not
unique and when broke==false they are.
This problem could be caused by the partial results overwriting the good
match.
The commented out string e is a regex that works in .net 2.0. I didn't
like having my hands tied to a platform/runtime which is reason for
rewriting in c/c++
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/4721> 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:04 UTC