当前位置:网站首页>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>';
边栏推荐
- el-table点击添加行样式
- PostgreSQL DBA quick start - source compilation and installation
- Oracle数据库监听文件配置
- indexedDB本地存储,首页优化
- 5分钟,客服聊天处理技巧,炉火纯青
- Thinkphp5 multi language switching project practice
- R ellipse random point generation and drawing
- Implementation of simple floating frame in WindowManager
- PRCT-1400 : 未能执行 getcrshome解决方法
- 414-二叉树的递归遍历
猜你喜欢

操作符详解

Thinkphp5 multi language switching project practice

How to make social media the driving force of cross-border e-commerce? This independent station tool cannot be missed!

ssh远程免密登录

canvas 绘制图片

Operator details

小程序学习之获取用户信息(getUserProfile and getUserInfo)

英伟达这篇CVPR 2022 Oral火了!2D图像秒变逼真3D物体!虚拟爵士乐队来了!

vim的使用

如何管理海量的网络基础设施?
随机推荐
port 22: Connection refused
谈谈数字化转型晓知识
Arbre binaire partie 1
R 椭圆随机点产生并画图
蜜罐2款hfish,ehoney
顶刊TPAMI 2022!基于不同数据模态的行为识别:最新综述
Algorithm -- find and maximum length k subsequence (kotlin)
PRCT-1400 : 未能执行 getcrshome解决方法
Oracle 12c升级至19c后ORA-28000错误
Reasons for the failure of digital transformation and the way to success
ORA-16038 ORA-19502 ORA-00312故障处理
414-二叉树的递归遍历
Wechat applet learning to achieve list rendering and conditional rendering
Symbol.iterator 迭代器
Ora-28000 error after upgrading Oracle 12C to 19C
100 GIS practical application cases (XIV) -arcgis attribute connection and using Excel
Oracle数据库EXPDP只导出表的方法
js代理模式
impdp导schema报ORA-31625异常处理
Latex formula and table recognition