
1 Aug
2007
1 Aug
'07
3:42 p.m.
Lorenzo Bettini wrote:
Thus I was wondering: which is the actual algorithm used by regex_search? Does it take into consideration other things beside the biggest length?
It depends whether it's a Perl regex or a POSIX regex. Perl matching rules are documented here: http://www.boost.org/libs/regex/doc/syntax_perl.html#what and the Leftmost-Longest rule used by POSIX regexes is documented here: http://www.boost.org/libs/regex/doc/syntax_leftmost_longest.html Does this give you the information you require? John.