Function pretty_regex::any

source ·
pub fn any() -> PrettyRegex<CharClass<Standard>>
Expand description

Matches any character, except for newline (\n).

Example

assert!(!any().to_regex_or_panic().is_match("\n"));
assert!(any().to_regex_or_panic().is_match("a"));