match method
Matches this string against the given pattern.
final text = "123e4567-e89b-12d3-a456-426614174000";
final pattern = r'[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}';
bool hasMatch = text.match(pattern); // true.
Implementation
bool match(String pattern) => RegExp(pattern).hasMatch(this);