`
liuquanjc
  • 浏览: 59204 次
  • 性别: Icon_minigender_1
  • 来自: 武汉
社区版块
存档分类
最新评论

java common

阅读更多

一、java正则表达式

String p = "^1(34|35|36|37|38|39|47|58|59|50|51|52|57|84|87|88)[0-9]{8}$";
  if(StringUtils.isEmpty(recommmobile) || !Pattern.matches(p, recommmobile)) {
   error.setErrorMsg("尊敬的客户:请输入正确的中国移动手机号码!");
   error.setErrorUrl("QueryShortNoGroup.action");//返回URL
   return ret;
  }

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics