Boost logo

Boost :

From: Lorenzo Bettini (bettini_at_[hidden])
Date: 2005-02-06 12:34:17


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?


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk