[][src]Function rex_regex::match_re_str

pub fn match_re_str(
    re: &str,
    s: &str
) -> Result<(bool, Vec<(usize, usize)>), String>

Parse, compile, and match a regular expression. Not recommended for repeated use, as the regular expression will be compiled every time. Use compile() and match_re() to make this more efficient (about 3x faster).