Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要一个正则表达式来确保一个值以以下任一开头:
60、07 或 80
并且是 9 位长
请有人帮忙解决这个问题。
谢谢
^(?:60|07|80)\d{7}$应该适合您的需求。
^(?:60|07|80)\d{7}$
/(07|60|80)[\d]{7}/
应该这样做。