![]() |
Home | Libraries | People | FAQ | More |
boost::xpressive::repeat — Repeat a sub-expression multiple times.
// In header: <boost/xpressive/regex_primitives.hpp> template< Min, Max, typename Expr> ( expr); template< Count, typename Expr2> ( expr2);
There are two forms of the repeat<>() function template. To match a sub-expression N times, use repeat<N>(expr). To match a sub-expression from M to N times, use repeat<M,N>(expr).
The repeat<>() function creates a greedy quantifier. To make the quantifier non-greedy, apply the unary minus operator, as in -repeat<M,N>(expr).
Parameters: |
|