我们的手机号现在分类中国移动与中国联通了,下面我来给大家先分析他们的特性,然后进行有效的编码。
手机(中国移动手机号码):
代码如下 | 复制代码 |
regexp="^(((d{3}))|(d{3}-))?13[456789]d{8}|15[89]d{8}" |
验证是否为手机号码的正则
代码如下 | 复制代码 |
:"^(13[0-9]|15[0|3|6|7|8|9]|18[6|8|9])d{8}$" |
php代码
代码如下 | 复制代码 |
$regex = '/^1((3[0-9])|(4[57])|(5[012356789])|(8[02356789]))[0-9]{8}$/'; if (preg_match($regex, $mobilePhone) == 0) { else { |

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

SublimeText3 Chinese version
Chinese version, very easy to use

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

Zend Studio 13.0.1
Powerful PHP integrated development environment

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

Atom editor mac version download
The most popular open source editor