Skip to main content

match_pattern

Function match_pattern 

Source
pub fn match_pattern(
    pattern: &str,
    text: &str,
) -> Option<BTreeMap<String, String>>
Expand description

Match text against pattern, returning the captured args, or None when the pattern does not apply. Total: never panics, any inputs.