This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Regex match bug
- From: Hans Åberg <haberg-1 at telia dot com>
- To: libstdc++ at gcc dot gnu dot org
- Date: Thu, 19 Apr 2018 18:21:32 +0200
- Subject: Regex match bug
[Please cc me, as I am not on this list.]
There may be a bug in the regex library of g++ 7.3.0: In the regex "(z)((a+)?(b+)?(c))*" example at [1], applied to the string "zaacbbbcac", g++ produces a pattern #4 match as "bbb", whereas it says there it should be empty (the latter which clang++ does).
1. http://en.cppreference.com/w/cpp/regex/ecmascript