Function parse_regex

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

Parse a regex.

The input is expected to look like /<regex>/<modifiers>.

ยงErrors

Returns an error if the parsing fails.