Function create_regex_find

Source
pub fn create_regex_find(
    pat: &str,
    result_ref: VVal,
) -> Result<Box<dyn Fn(&VVal) -> VVal>, ParseError>
Expand description

Creates a function that takes a string slice and tries to find the compiled regular expression in it. The returned function then returns a PatResult which stores the captures and whether the pattern matched.