소스 검색

1、永诚报价代码优化5

ligang134 3 년 전
부모
커밋
476ccf39a3
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/main/java/com/ydtech/utils/IDCardUtils.java

+ 1 - 1
src/main/java/com/ydtech/utils/IDCardUtils.java

@@ -340,7 +340,7 @@ public class IDCardUtils {
      * @return
      */
     public static Map<String, String> addressResolution(String address) {
-        String regex = "(?<province>[^省]+自治区|.*?省|.*?行政区|.*?市)(?<city>[^市]+自治州|.*?地区|.*?行政单位|.+盟|市辖区|.*?市|.*?县)(?<district>[^县]+县|.+区|.+市|.+旗|.+海域|.+岛)?(?<town>[^区]+区|.+镇)?(?<detail>.*)";
+        String regex = "(?<province>[^省]+自治区|.*?省|.*?行政区|.*?市)(?<city>[^市]+自治州|.*?地区|.*?行政单位|.+盟|市辖区|.*?市|.*?县)(?<district>[^县]+县|.*?区|.+市|.+旗|.+海域|.+岛)?(?<town>[^区]+区|.+镇)?(?<detail>.*)";
         Matcher m = Pattern.compile(regex).matcher(address);
         String province = null, city = null, district = null, town = null, detail = null;
 //        List<Map<String, String>> table = new ArrayList<Map<String, String>>();