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")}")
}Вывод
true
pub(api) fn isMatch(s: str) -> boolС версии. 1.0.0-beta
Параметры
| Имя | Тип |
|---|---|
s | str |
Возвращает
bool
Эффекты
не объявлены (чистая, пока тело не говорит иное)
Определено в: std/core/text.oxl:1281