Boost logo

Boost :

From: Edward Diener (eddielee_at_[hidden])
Date: 2005-02-06 11:49:18


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.


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