
6 Feb
2005
6 Feb
'05
5:34 p.m.
Edward Diener wrote:
Lorenzo Bettini wrote:
Hi
is there an immediate way to access the sub-expression that matched instead of checking each "what" as in the following?
for (unsigned int i = 1; i < what.size(); ++i) { if (what[i].matched) {
If you have more than one sub-expression in your RE, there can be any number of matched strings up to the number of sub-expressions.
right, but also in this case, my question could be generalized: why not having a set of indexes of matched sub-expressions?