当前位置:网站首页>Regular matching mobile number
Regular matching mobile number
2022-06-24 09:56:00 【BigChen_ up】
/** * Regular : cell-phone number ( accurate ) * Move :134、135、136、137、138、139、147、150、151、152、157、158、159、178、182、183、184、187、188、198 * Unicom :130、131、132、145、155、156、175、176、185、186、166 * telecom :133、 173、177、180、181、189、199 * Virtual operators :170 */
// $pattern = '!^1(34|35|36|37|38|39|47|50|...)\d{8}$!';
$pattern = '/^1([38]\d|4[57]|5[0-25-9]|66|7[035-8]|9[89])\d{8}$/';
$res = preg_match($pattern, $subject);
echo $res ? ' yes ' : ' Not ';
echo ' cell-phone number <hr>';
边栏推荐
- 二十、处理器调度(RR时间片轮转,MLFQ多级反馈队列,CFS完全公平调度器,优先级翻转;多处理器调度)
- Top issue tpami 2022! Behavior recognition based on different data modes: a recent review
- Thinkphp5 clear the cache cache, temp cache and log cache under runtime
- grpc本地测试联调工具BloomRPC
- Symbol. Iterator iterator
- Binary tree part I
- indexedDB本地存储,首页优化
- Geogebra instance clock
- In depth study paper reading target detection (VII) Chinese English Bilingual Edition: yolov4 optimal speed and accuracy of object detection
- Endgame P.O.O
猜你喜欢

ssh远程免密登录

Oracle数据文件头SCN不一致处理方法

Conseils étonnants pour promouvoir les ventes d'entreprise avec le chat en direct

Grpc local test joint debugging tool bloomrpc

Wechat applet learning to achieve list rendering and conditional rendering

微信小程序学习之 实现列表渲染和条件渲染.

Ggplot2 color setting summary

5分钟,客服聊天处理技巧,炉火纯青

Analysis of 43 cases of MATLAB neural network: Chapter 32 time series prediction of wavelet neural network - short-term traffic flow prediction

Programming questions (continuously updated)
随机推荐
411-栈和队列(20. 有效的括号、1047. 删除字符串中的所有相邻重复项、150. 逆波兰表达式求值、239. 滑动窗口最大值、347. 前 K 个高频元素)
Ora-28000 error after upgrading Oracle 12C to 19C
二叉樹第一部分
Array seamless scrolling demo
【Eureka注册中心】
队列Queue
threejs的 mmd模型加载+轮廓加载+动画加载+音频加载+相机动画加载+ammojs加载 gltf模型的加载 +gltf的反射调整
微信小程序學習之 實現列錶渲染和條件渲染.
新手怎么选择投资理财产品的等级?
Analysis of 43 cases of MATLAB neural network: Chapter 32 time series prediction of wavelet neural network - short-term traffic flow prediction
Threejs MMD model loading + contour loading + animation loading + Audio loading + camera animation loading +ammojs loading gltf model loading +gltf reflection adjustment
【自定义Endpoint 及实现原理】
Cicflowmeter source code analysis and modification to meet requirements
达梦数据库如何定位锁等待问题解决方法
Record the range of data that MySQL update will lock
Top issue tpami 2022! Behavior recognition based on different data modes: a recent review
Is there a reliable and low commission futures account opening channel in China? Is it safe to open an account online?
JS proxy mode
Algorithm - the K row with the weakest combat power in the matrix (kotlin)
Handling method of Oracle data file header SCN inconsistency