This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/******************** 正则相关常量 ********************/ | |
/** | |
* 正则:手机号(简单) | |
*/ | |
public static final String REGEX_MOBILE_SIMPLE = "^[1]\\d{10}$"; | |
/** | |
* 正则:手机号(精确) | |
* <p>移动:134(0-8)、135、136、137、138、139、147、150、151、152、157、158、159、178、182、183、184、187、188</p> | |
* <p>联通:130、131、132、145、155、156、175、176、185、186</p> | |
* <p>电信:133、153、173、177、180、181、189</p> |