hasMatch abstract method Null safety
- String input
Checks whether this regular expression has a match in the input
.
var string = 'Dash is a bird';
var regExp = RegExp(r'(humming)?bird');
var match = regExp.hasMatch(string); // true
regExp = RegExp(r'dog');
match = regExp.hasMatch(string); // false
Implementation
bool hasMatch(String input);