[][src]Struct posix_regex::matcher::PosixRegex

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

A regex matcher, ready to match stuff

Methods

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

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

impl<'a> Clone for PosixRegex<'a>
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<'a> Send for PosixRegex<'a>

impl<'a> Sync for PosixRegex<'a>

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.