摘要:
验证用户为中文: String passUserNO = serialLog.getBillKey().trim(); Pattern chinaP = Pattern.compile("^[\u4e00-\u9fa5]+"); Matcher chinaM = chinaP.matcher(passUserNO); boolean chinaKey = chinaM.matches(); if(chinaKey==true){ addActionError("用户总户号不能为中文!"); return businessDetails(); }//正则匹 阅读全文