/** * * @Title: validadeRegExp * @Descrption : TODO (正则校验) * @param regExp * @param obj * @return * @return boolean * @Version:1.0 * @Date:2014-11-29 下午05:17:59 * @Author:CLL */ private boolean validadeRegExp(String regExp ,String obj) { Pattern pattern=Pattern.compile(regExp); Matcher matcher=pattern.matcher(obj); return matcher.matches(); }