method Regex.findAll
Every non-overlapping match, left to right (an empty match advances by one character).
Example:
fn main() io {
let re = Regex.compile("[0-9]+")!
print("{re.findAll("a1b22c333").len()}")
}Вывод
3
pub(api) fn findAll(s: str) -> List<Match>С версии. 1.0.0-beta
Параметры
| Имя | Тип |
|---|---|
s | str |
Возвращает
Эффекты
не объявлены (чистая, пока тело не говорит иное)
Определено в: std/core/text.oxl:1310