Home  >  Article  >  php教程  >  手机号码和电话号码的正则 - 笨笨笨蛋

手机号码和电话号码的正则 - 笨笨笨蛋

WBOY
WBOYOriginal
2016-05-20 10:14:501099browse
var reg = /^(0[0-9]{2,3}\-)?([2-9][0-9]{6,7})+(\-[0-9]{1,4})?$|(^(13[0-9]|15[0|3|6|7|8|9]|18[8|9])\d{8}$)/;
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn