Function regex
Source pub fn regex(pattern: &str, repeats: Option<u32>) -> Result<Regex, Error>
Expand description
Creates a generator from a regular expression at runtime.
If the regular expression parsing fails, an Err is returned. For
compile-time checked regexes, see the regex! macro.