02 2017 档案

摘要:package com.modules.plateform.tool; import java.util.regex.Pattern; /** * 账户相关属性验证工具 * */ public class AccountValidatorUtil { /** * 正则表达式:验证用户名 */ public static final String REG... 阅读全文
posted @ 2017-02-21 20:57 胡一生 阅读(67121) 评论(6) 推荐(1)
摘要:/** * 判断是否包含汉字 * @param str * @return */ public static boolean isContainChinese(String str) { Pattern p = Pattern.compile("[\u4e00-\u9fa5]"); Matcher m = p... 阅读全文
posted @ 2017-02-21 14:51 胡一生 阅读(1123) 评论(0) 推荐(0)