Boost logo

Boost Users :

From: pps (i-love-spam_at_[hidden])
Date: 2005-03-07 22:27:22


John Maddock wrote:

thanks for your reply. Now it's a bit clear for me.
s.match( /^abc/ ) -> regex_match(s,regex("^abc"), match_default|
match_single_line)
s.match( /^abc/m ) -> regex_match(s,regex("^abc"), match_default)
s.match( /^abc/i ) -> regex_match(s,regex("^abc"), icase)

> First off remember that regex_match doesn't *search*, it succeeds only
> if the whole of the expression matches the whole of the text, so you
> really need to be using regex_search.

global is of course for search / replace, my mistake sorry

>
>> regex_match(string, regex("^abc"), match_default)
>> regex_match(string, regex("^abc"), match_default | icase) // <- is it
>> correct?
both aren't correct (need match_single_line)


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