Returns all matches of regex in the string.
regex
import * as S from "flurp/string";const allVowels = S.matches(/[aeiou]/g);allVowels("weasel"); // ["e", "a", "e"]const oopsNotGlobal = S.matches(/[aeiou]/);oopsNotGlobal("weasel"); // null
global flag must be set, or will return null
null
Returns all matches of
regex
in the string.Example