bool hasMatch(String input)

Returns whether the regular expression has a match in the string input.

Source

bool hasMatch(String input);