Regular verification of mobile phone number problem
if (!preg_match('/0?(00|01|11|13|14|15|17|18)[0-9]{9}/', $tel)) {
<code> } </code>
Why does this regex allow mobile phone numbers with more than 11 digits to pass through directly without reporting an error? 00 and 01 11 are customized, just ignore them
The regex is not very good. What is wrong? How should I write it?

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

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Realize the gap effect of card coupon layout. When designing card coupon layout, you often encounter the need to add gaps on card coupons, especially when the background is gradient...

To achieve the effect of scattering and enlarging the surrounding images after clicking on the image, many web designs need to achieve an interactive effect: click on a certain image to make the surrounding...

How to solve the problem that the background icon is blocked by the background color when the mouse is suspended. When designing a web page, you often encounter this problem: when the mouse is suspended...

How to achieve the gap effect in the card layout? When designing a card voucher layout, it is often necessary to create a gap effect at one corner or edge of the card voucher, especially...

Using the Bootstrap framework to build horizontal waterfall flow layout Many developers hope to use the Bootstrap framework to quickly build web pages and achieve various complex layout effects...

How to achieve the gap effect in the card layout? When designing card voucher layout, it is a common requirement to achieve the gap effect on the edge of card voucher. If the background is pure...

Explore excellent CSS effect display website If you are interested in learning and appreciating various exquisite CSS effects, it is very important to find the right resources. regardless...

CSS scroll bar failure troubleshooting: overflow:auto failure cause analysis In using CSS to set up container overflow:auto...
