pub fn compile_pattern(pattern: &str) -> Result<Regex, String>Expand description
Compile a pattern so that it must match the whole value.
A rule that read [0-9]+ and accepted abc123def would pass what its
author meant to refuse, so the anchors are always supplied here rather
than expected of the author.
ยงErrors
Returns why the pattern is not a regular expression.