findAll method

List<String> findAll(
  1. String source, [
  2. int start = 0
])

Example: expect(FluentRegex().digit().findAll('a1bc2D3e&(f4'), '1', '2', '3', '4'); expect(FluentRegex().letter().findAll('123&(4'), []);

Implementation

List<String> findAll(String source, [int start = 0]) => _toRegExp()
    .allMatches(source, start)
    .map((regExpMatch) => regExpMatch.group(0)!)
    .toList();