matchAll static method
Returns all regex matches of pattern in subject.
Implementation
static List<String> matchAll(Pattern pattern, String subject) {
final regex = pattern is RegExp ? pattern : RegExp(pattern.toString());
return regex.allMatches(subject).map((m) => m.group(0) ?? '').toList();
}