method Regex.isMatch
True when the pattern matches anywhere in s.
Example:
fn main() io {
let re = Regex.compile("[0-9]+")!
print("{re.isMatch("ab12")}")
}Output
true
pub(api) fn isMatch(s: str) -> boolSince. 1.0.0-beta
Parameters
| Name | Type |
|---|---|
s | str |
Returns
bool
Effects
none declared (pure unless the body says otherwise)
Defined in: std/core/text.oxl:1281