[root@localhost python]# py sf.py |egrep -E "countCNPGR.2015..{6}.3" //匹配{6}前的6个字符 countCNPGR 2015 000540 3 23 countCNPGR 2015 000567 3 23