
6 Feb
2005
6 Feb
'05
4:49 p.m.
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.