OxL Reference

method Regex.findAll

Every non-overlapping match, left to right (an empty match advances by one character).

Example:

oxl✓ checked in CI
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

NameType
sstr

Returns

List<Match>

Effects

none declared (pure unless the body says otherwise)

Defined in: std/core/text.oxl:1310

See also