判断内容是否符合正则
static bool hasMatch(String? s, Pattern p) { return (s == null) ? false : RegExp(p.toString()).hasMatch(s); }