Function human_regex::one_or_more

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

Match one or more of a certain target

let regex_string = human_regex::one_or_more("a");
assert!(regex_string.to_regex().is_match("aaaa"));
assert!(!regex_string.to_regex().is_match("bb"));