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()}")
}Output
3
pub(api) fn findAll(s: str) -> List<Match>Since. 1.0.0-beta
Parameters
| Name | Type |
|---|---|
s | str |
Returns
Effects
none declared (pure unless the body says otherwise)
Defined in: std/core/text.oxl:1310