Skip to main content

match_compiled

Function match_compiled 

Source
pub fn match_compiled<D: Dimension>(
    a: &StringArray<D>,
    re: &Regex,
) -> FerrayResult<Array<bool, D>>
Expand description

Like match_ but takes a pre-compiled Regex. Callers that run the same pattern against many arrays can compile the pattern once and reuse it across all calls, avoiding the regex engine’s per-call compilation overhead (#521).