// 移动号段:139 138 137 136 135 134 147 150 151 152 157 158 159 165 178 182 183 184 187 188 198
// 联通号段:130 131 132 155 156 166 167 185 186 145 175 176
// 电信号段:133 153 162 177 173 180 181 189 191 199
// 虚拟运营商号段:170 171
// 见:http://www.jihaoba.com/tools/haoduan/
public static final String PHONE = "^(((13|18)[0-9]{9})|(15[012356789][0-9]{8})|((147|170|171|173|175|176|177|178|165|198|166|167|162|191|199)[0-9]{8}))$";
boolean flag = false;
Pattern pattern = Pattern.compile(PHONE);
Matcher matcher = pattern.matcher("手机号");
flag = matcher.matches();
if (!flag) {
return RestResponse.failed("20001", "手机号错误!");
}