1、匹配国内电话的:/(^(\d{3}-)?\d{8}$)|(^(\d{4}-)?\d{7}$)/;
转载于:https://www.cnblogs.com/tzq9308/p/4704667.html