static bool check(String text, String pattern, {bool caseSensitive = true}) { return RegExp(pattern, caseSensitive: caseSensitive).hasMatch(text); }