Function regex

Source
pub fn regex(input: &str) -> Result<Regex, Error<&str>>
Expand description

Parses a regular expression according to the format above. The whole string must be parsable, otherwise this function errors. All regexes that are successfully parsed by this function is guaranteed to be valid regexes.