pub fn parse_regex(input: &str) -> Result<Regex, Error>
Parse a regex.
The input is expected to look like /<regex>/<modifiers>.
/<regex>/<modifiers>
Returns an error if the parsing fails.