Returns whether the regular expression has a match in the string input.
input
bool hasMatch(String input);