Regex match 8-digit phone with optional hyphens between each digit

后端 未结 0 1406
無奈伤痛
無奈伤痛 2021-01-15 04:39

I want to extract 8-digit numbers from a paragraph. It can contain a single optional hyphen anywhere between digits and MUST start with 6 or 7, so the following should match

相关标签:
回答
  • 消灭零回复
提交回复
热议问题