Skip to main content

is_regex_pattern

Function is_regex_pattern 

Source
pub fn is_regex_pattern(pattern: &str) -> bool
Expand description

Whether a rule’s pattern is a regular expression rather than a glob: it says so with re:, or it carries a class (\b, \s, \d, \w) or an alternation group, which a glob would read as literal text and never match.