Commit fd656597 by fanlongfei

Merge branch 'develop' into 'test'

修改手机号的正则表达式



See merge request !2
parents 0f31ecb0 9dfd1479
......@@ -10,7 +10,8 @@ import java.util.regex.Pattern;
*/
public final class RegexUtils {
private static Pattern mobile = Pattern.compile("^((13[0-9])|(15[^4,\\D])|(18[0,5-9]))\\d{8}$");
private static Pattern mobile1 = Pattern.compile("^((13[0-9])|(15[^4,\\D])|(18[0,5-9]))\\d{8}$");
private static Pattern mobile = Pattern.compile("(\\+\\d+)?1[34578]\\d{9}$");
private static Pattern chinese = Pattern.compile("[\u4e00-\u9fa5]");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment