邮政编号验证
/**
* 驗證輸入郵政編號
*
* @param 待驗證的字符串
* @return 如果是符合格式的字符串,返回 <b>true </b>,否則為 <b>false </b>
*/
public static boolean IsPostalcode(String str) {
String regex = "^\\d{6}$";
return match(regex, str);
}
?
轉載于:https://www.cnblogs.com/20gg-com/p/6037453.html
總結
- 上一篇: STM32调试诊断工具 | STM St
- 下一篇: 全国计算机设计水平大赛,我校本科生获第1