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