Function wlambda::selector::create_regex_find_function [−][src]
pub fn create_regex_find_function(
pat: &str,
result_ref: VVal,
mode: RegexMode
) -> Result<VVal, ParseError>
Expand description
Creates a WLambda 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.