pub trait IsMatch { fn is_match(&self, data: &[u8]) -> bool; }
Provides an is_match function.
is_match
Returns true if data matches the regular expression, otherwise returns false.
true
data
false
This is a whole-string match. For sub-string search, put .* at the beginning and end of the regex.
.*