Function match_re_str

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

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).