Struct regex_dfa::Regex [] [src]

pub struct Regex { /* fields omitted */ }

Methods

impl Regex
[src]

Creates a new Regex from a regular expression string.

Creates a new Regex from a regular expression string, but only if it doesn't require too many states.

Returns the index range of the first match, if there is a match. The indices returned are byte indices of the string. The first index is inclusive; the second is exclusive.

Trait Implementations

impl Debug for Regex
[src]

Formats the value using the given formatter.

impl Clone for Regex
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more