1、邮编

public static final String POSTAL_CODE = "^\\d{6}$";

2、 email(支持中文域名邮箱) 正则表达式 
public static final String EMAIL = "^[\\w\\u4e00-\\u9fa5]+([-+\\.'][\\w\\u4e00-\\u9fa5]+)*@[\\w-\\u4e00-\\u9fa5]+([\\.][\\w-\\u4e00-\\u9fa5]+)*\\.[\\w-\\u4e00-\\u9fa5]+([\\.][\\w-\\u4e00-\\u9fa5]+)*$";

3、 internet网址(支持中文域名) 正则表达式

public static final String INTERNET_URL = "^((http|https)://)?[\\w-]+(\\.[\\w-\\u4e00-\\u9fa5]+)+([\\w-\\.,@?^=%&:/~\\+#\\u4e00-\\u9fa5]*[\\w-\\@?^=%&/~\\+#\\u4e00-\\u9fa5])?$";

4、IP地址正则表达式

public static final String IP_ADDR = "(25[0-5]|2[0-4]\\d|1\\d{2}|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d{2}|[1-9]?\\d)){3}";

5、UserID正则表达式

public static final String USER_ID = "^[\\u4e00-\\u9fa5a-zA-Z][\\u4e00-\\u9fa5\\w]{1,39}$";

6、 手机号码

public static final String MOBILE_TELEPHONE = "^[1]\\d{10}$";

05-08 08:27