Function pretty_regex::text_ending
source · pub fn text_ending() -> PrettyRegex<CharClass<Standart>>
Expand description
Matches the end of the text even with multi-line mode on (\z
).
Example
let regex = just("foo").then(text_ending()).to_regex_or_panic();
assert!(regex.is_match("foo"));
assert!(!regex.is_match("foof"));