正则表达式:分组 身份证匹配: idcardregex = r"^[1-9]\d{13,16} [0-9x]$" re.search(idcardregex, "110101198001017032") != No ...