Commit 3a400da5 authored by 刘基明's avatar 刘基明

屏蔽手机号

parent 81ba524f
......@@ -7,7 +7,7 @@ import javax.servlet.http.HttpServletRequest;
public class OtherUtil {
private final static String numberPattern = "^[0-9]*[1-9][0-9]*$";
private final static String phonePattern = "(13[0-9]|14[5|7]|15[0|1|2|3|4|5|6|7|8|9]|18[0|1|2|3|5|6|7|8|9])\\d{8}";
private final static String phonePattern = "(13[0-9]|14[0-9]|15[0-9]|17[0-9]|18[0-9])\\d{8}";
private final static String emailPattern = "\\w+([-+.]\\w+)*@\\w+([-.]\\w+)*\\.com";
......
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 to comment