extract method
Process input
and extract necessary data.
- Note: the output is usually passed to the next
extractor
in the chain.
Implementation
@override
List extract(input) {
final inputSource = RegexExtractor.prepareInputSource(input);
if (inputSource == null) {
return [];
} else {
final hasMatch = _regExpList.where((regExp) => regExp.hasMatch(inputSource)).isNotEmpty;
return hasMatch ? [inputSource] : [];
}
}