Function human_regex::at_least

source ·
pub fn at_least<T>(n: u8, target: T) -> HumanRegexwhere
    T: Into<String> + Display,
Expand description

Match at least n of a certain target

let regex_string = human_regex::at_least(3, "a");
assert!(regex_string.to_regex().is_match("aaaa"));
assert!(!regex_string.to_regex().is_match("aa"));