@override Map<String, Function> methods() { return { 'test': (String input) => regExp.hasMatch(input), //'exec': (String input) => regExp.allMatches(input).toList() }; }