between

Function between 

Source
pub fn between<P>(lo: usize, hi: usize, pattern: P) -> Repetition<P>
where P: Pattern,
Expand description

Returns a new pattern that matches between lo and hi repetitions of pattern.

Both bounds are inclusive.