Boost logo

Boost Users :

From: John Maddock (john_maddock_at_[hidden])
Date: 2003-02-20 06:17:39


> "(?!foo)bar" matches "bar" in the last three lines of the following:
>
> foobar
> ??bar
> barfoo
> bar??
> bar
>
> Why doesn't it match "bar" in all the lines?

Provided you are calling regex_search it should find a match in all the
cases, if it doesn't then please submit a test case.

John Maddock
http://ourworld.compuserve.com/homepages/john_maddock/index.htm


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net