pub fn nonescaped_text(text: &str) -> HumanRegex
Expand description

This text is not escaped. You can use it, for instance, to add a regex string directly to the object.

let regex_string = human_regex::nonescaped_text(r"^\d{2}$");
println!("{}", regex_string.to_string());
assert!(regex_string.to_regex().is_match("21"));
assert!(!regex_string.to_regex().is_match("007"));