Trait FancyRegexExt

Source
pub trait FancyRegexExt {
    // Required method
    fn py_split<'a>(&'a self, input: &'a str) -> Result<PySplit<'a>>;
}
Available on crate feature fancy-regex only.
Expand description

Extension trait for fancy_regex::Regex to provide more convenient methods.

Required Methods§

Source

fn py_split<'a>(&'a self, input: &'a str) -> Result<PySplit<'a>>

Splits the input string by the regex pattern. Like python’s re.split(), but returns an iterator.

Implementations on Foreign Types§

Source§

impl FancyRegexExt for Regex

Source§

fn py_split<'a>(&'a self, input: &'a str) -> Result<PySplit<'a>>

Implementors§