pub fn at_least<P>(n: usize, pattern: P) -> Repetition<P>where
P: Pattern,Expand description
Returns a new pattern that matches at least n repetitions of pattern.
use bparse::{Pattern, at_least};
assert_eq!(at_least(2, "a").eval(b"a"), None);
assert_eq!(at_least(2, "a").eval(b"aaa"), Some(3));