|
Boost Users : |
From: John Maddock (john_at_[hidden])
Date: 2006-05-28 07:36:00
Christopher Hart wrote:
> All:
>
> I think I'm seeing strange behavior with the greediness operators in
> Boost.Regex (1.33.1, Mac OS 10.4.6), but was hoping someone could
> confirm that I'm using them correctly. For example, the following two
> calls:
No you're calling regex_match when you should be calling regex_search:
regex_match will only find matches that match ALL OF THE INPUT STRING, if
you want a subset of the input to match then you need to use regex_search.
John.
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