Struct pcre::Match [] [src]

pub struct Match<'a> { /* fields omitted */ }

Represents a match of a subject string against a regular expression.

Methods

impl<'a> Match<'a>
[src]

Returns the start index within the subject string of capture group n.

If the capture group is present in the pattern but wasn't captured then the start of it will be usize::max_value(). Happens with the optional groups, /(optional)?/.

Returns the end index within the subject string of capture group n.

If the capture group is present in the pattern but wasn't captured then the end of it will be usize::max_value(). Happens with the optional groups, /(optional)?/.

Returns the length of the substring for capture group n.

Returns the substring for capture group n as a slice.

Returns the number of substrings captured.