📜  def check_zip_code(text): result = re.search(r'\d{5}(?:-\d{4})?', text) return result != None - Python 代码示例
📅  最后修改于: 2022-03-11 14:47:06.094000             🧑  作者: Mango
代码示例2
(?!\A)\b\d{5}(?:-\d{4})?\b