Boost logo

Boost Users :

From: Edward Diener (eddielee_at_[hidden])
Date: 2002-08-23 17:34:34


Use regex_grep instead.and create a Predicate for handling each match found.

<yg-boost-users_at_[hidden]> wrote in message
news:1103_1030088786_at_news.gmane.org...
> hello everybody
>
> i have a trouble with regex_match function. when i try to match a string
with a pattern like "(abc)*", and if the string beeng matched contains
several subexpressions 'abc',
> regex_match returns only one match so that i can't iterate through all of
them. so, it counts subexp's in the pattern, not in the string. why it
happens (i use default flags for
> regex_match, which must perform what i expect)? and what is the solution
to the problem (the one i found so far is to parse in 2 phases - once with
regex_match to be sure
> that the whole string matched, and then to use regex_split. but i'd like
to parse the string only once and obtain all the subexp's)?


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