pub struct PosixRegex<'a> { /* private fields */ }
Expand description

A regex matcher, ready to match stuff

Implementations

Create a new matcher instance from the specified alternations. This should probably not be used and instead an instance should be obtained from PosixRegexBuilder, which also compiles a string into regex.

Chainable function to enable/disable case insensitivity. Default: false. When enabled, single characters match both their upper and lowercase representations.

Chainable function to enable/disable newline mode. Default: false. When enabled, ^ and $ match newlines as well as start/end. This behavior overrides both no_start and no_end.

Chainable function to enable/disable no_start mode. Default: false. When enabled, ^ doesn’t actually match the start of a string.

Chainable function to enable/disable no_start mode. Default: false. When enabled, $ doesn’t actually match the end of a string.

Return the total number of matches that will be returned by matches_exact or in each match in matches.

Match the string starting at the current position. This does not find substrings.

Match any substrings in the string, but optionally no more than max

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.