Skip to main content

parse

Function parse 

Source
pub fn parse(
    pattern: &str,
    flags: Flags,
) -> Result<(Vec<Op>, Flags), ParseError>
Expand description

Parse pattern under flags; returns the op tree and the final flags (global inline flags included), mirroring re._parser.parse.

ยงErrors

A ParseError whose message mirrors the reference re.error text whenever the reference parser would reject the pattern.