RegExp exp = RegExp(
r'^((13[0-9])|(14[0-9])|(15[0-9])|(16[0-9])|(17[0-9])|(18[0-9])|(19[0-9]))\d{8}$');
bool matched = exp.hasMatch(mobileTextController.text);
Flutter/Dart使用正则表达式验证手机号
猜你喜欢
转载自blog.csdn.net/qq_27494201/article/details/106638820
今日推荐
周排行