has match return bool for pattern matching
static bool hasMatch(String? s, String p) { return (s == null) ? false : RegExp(p).hasMatch(s); }