MCPcopy Create free account
hub / github.com/davidblewett/rure-python / is_match

Method is_match

regex/src/re_unicode.rs:197–199  ·  view source on GitHub ↗

Returns true if and only if the regex matches the string given. It is recommended to use this method if all you need to do is test a match, since the underlying matching engine may be able to do less work. # Example Test if some text contains at least one word with exactly 13 Unicode word characters: ```rust # extern crate regex; use regex::Regex; # fn main() { let text = "I categorically deny

(&self, text: &str)

Source from the content-addressed store, hash-verified

195 /// # }
196 /// ```
197 pub fn is_match(&self, text: &str) -> bool {
198 self.is_match_at(text, 0)
199 }
200
201 /// Returns the start and end byte range of the leftmost-first match in
202 /// `text`. If no match exists, then `None` is returned.

Callers

nothing calls this directly

Calls 1

is_match_atMethod · 0.45

Tested by

no test coverage detected