Function has_regex_match
Source pub fn has_regex_match(pattern: &str, input: &str) -> bool
Expand description
Returns true when the pattern matches any part of the input.
examples/facade_full.rs (
line 7)
3fn main() {
4 let span = matchers::MatchSpan { start: 0, end: 4 };
5
6 assert_eq!(matchers::slice_match("rustacean", &span), Some("rust"));
7 assert!(regex::has_regex_match(r"\d+", "v2"));
8 assert!(glob::glob_matches("src/**/*.rs", "src/bin/main.rs"));
9 assert!(wildcard::wildcard_matches("data-*.json", "data-1.json"));
10}