Skip to main content

matches

Function matches 

Source
pub fn matches(This: This<Arc<String>>, regex: Regex) -> bool
Expand description

Returns true if a string matches the regular expression.

ยงExample

"abc".matches("^[a-z]*$") == true