正则表达式

1、匹配国内电话的:/(^(d{3}-)?d{8}$)|(^(d{4}-)?d{7}$)/;

原文地址:https://www.cnblogs.com/tzq9308/p/4704667.html