Subject: [Boost-bugs] [Boost C++ Libraries] #4309: Negative lookbehind assertion error
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-06-07 23:26:08
#4309: Negative lookbehind assertion error
--------------------------+-------------------------------------------------
Reporter: anonymous | Owner: johnmaddock
Type: Bugs | Status: new
Milestone: Boost 1.43.0 | Component: regex
Version: Boost 1.43.0 | Severity: Problem
Keywords: |
--------------------------+-------------------------------------------------
As soon as you include an OR-expression inside a negative lookbehind
assertion, you get wrong results. Not sure if this is a bug, but I've
tested this with multiple engines and I get different results.
------------------------
Regex:
(?<!foo|bar) \(
String:
test bar (
NO MATCH (expected)
------------------------
Regex:
(?<!food|bar) \(
String:
test bar (
MATCH (NOT expected)
------------------------
Regex:
(?<!fo|bar) \(
String:
test bar (
MATCH (NOT expected)
------------------------
This really makes it hard to match certain strings :(
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/4309> 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:03 UTC