Function human_regex::without

source ·
pub fn without(range: RangeInclusive<char>) -> HumanRegex
Expand description

Matches anything outside of a range of characters

 use human_regex::{beginning, end, without};
 let regex_string = beginning() + without('a'..='d') + end();
 println!("{}", beginning());
 assert!(regex_string.to_regex().is_match("h"));
 assert!(!regex_string.to_regex().is_match("c"));