Version: v0.5.0 - Beta.  We welcome contributors & feedback.  THanks!

String.matchAll

matchAll(regexPattern)

Description

Apply a regex pattern match.

let nums = '123 456'.matchAll(r'(\d+)');
//= ['123 456', '123', '456']

let letters = 'abc 123'.match(r'(xyz)');
//= []

See Also