Perl/Python regular expressions vs. Boost.regex?

skip at pobox.com skip at pobox.com
Sat Oct 25 15:04:08 EDT 2008


    Rob> Quoting from : <url:http://www.boost.org/doc/libs/1_36_0/libs/regex/doc/html/boost_regex/ref/regex_match.html>

    Rob> <quote>
    Rob> Important 

    Rob> Note that the result is true only if the expression matches the
    Rob> whole of the input sequence. If you want to search for an
    Rob> expression somewhere within the sequence then use regex_search. If
    Rob> you want to match a prefix of the character string then use
    Rob> regex_search with the flag match_continuous set.
 
    Rob> </quote>

    Rob> So yes it does.

Thanks.  I'll try and convince my colleague to use regex_search instead of
regex_match.

Skip




More information about the Python-list mailing list