28 May
2006
28 May
'06
11:36 a.m.
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.