Skip to content

Instantly share code, notes, and snippets.

@youxiachai
Created January 10, 2013 08:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save youxiachai/4500565 to your computer and use it in GitHub Desktop.
Save youxiachai/4500565 to your computer and use it in GitHub Desktop.
public static boolean isMobileNO(String mobiles){
Pattern p = Pattern.compile("^((13[0-9])|(15[^4,\\D])|(18[0,5-9]))\\d{8}$");
Matcher m = p.matcher(mobiles);
return m.matches();
}
@inmyfree
Copy link

inmyfree commented Mar 9, 2013

我擦,一个正则也好意思拿出来,fk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment