对上面的问题进行补充:提取身份证号中的日期,下面的两行代码是怎么提取的没看懂 Pattern p2 = Pattern.compile("\\d{6}(\\d{8}).*"); Pattern p3 = Pattern.compile("(\\d{4})(\\d{2})(\\d{2})");