国内座机的正则表达式
(^)|(^(0\d{2})-(\d{8}))|(^(0\d{3})-(\d{7,8}))|(^(0\d{2})-(\d{8})-(\d+))|(^(0\d{3})-(\d{7,8})-(\d+))|(^\d{8})|(^(\d{8})-(\d+))|(^0\d{10})|((^0\d{10})-(\d+))|((^0\d{10})(\d+))
支持验证的座机电话样式举例:
- 028-88889999(区号-座机号)
- 88889999(座机号)
- 02888889999(区号座机号)
- 028-85679636-001(区号-座机号-分机号)
- 85679636-001(座机号-分机号)
- 02885679636-001(区号座机号-分机号)
- 02885679636001(区号座机号分机号)