Skip to main content

like_matches

Function like_matches 

Source
pub fn like_matches(value: &str, pattern: &str) -> bool
Expand description

Tests whether value matches the SQL-style LIKE pattern.

% matches any run of characters and _ exactly one; all other characters are literal. The pattern is anchored (must match the whole value). An invalid translation never matches.