Returns true if pattern matches thes string.
bool match(String string) { return allMatches(string).isNotEmpty; }