lua正则表达式判断手机号

news/2024/7/3 5:49:09

function CheckIsMobile(str)

return string.match(str,"[1][3,4,5,7,8]%d%d%d%d%d%d%d%d%d") == str;

end


http://www.niftyadmin.cn/n/2673306.html

相关文章

安装oracle11g 时0%-stat(/etc/security/limits.conf, 0x7fff2cf1f030) = -1 EACCES (Permission denied)...

oracleinstaller -debug strace executebak brk(0x1582000) 0x1582000stat("/etc/security/limits.conf", 0x7fff2cf1f030) -1 EACCES (Permission denied) 转载于:https://www.cnblogs.com/xiaocry/articles/6737816.html

11月

11月转载于:https://www.cnblogs.com/ddkei/p/10209306.html

linux之SQL语句简明教程---DISTINCT

SELECT 指令让我们可以读取表格中一个或数个栏位的全部资料。这将把全部的资料都抓出。不管资料值有无反复。在资料处理中,我们会常常碰到须要找出表格内的不同资料值的情况。换句话说。我们须要知道这个表格/栏位内有哪些不同的值。而每一个值出现的次数并不重要。…

CSU - 1550 Simple String —— 字符串

题目链接&#xff1a;http://acm.csu.edu.cn/csuoj/problemset/problem?pid1550 题解&#xff1a; 1.AB 与C的交集必须>n 2.A与C的交集必须>n/2&#xff0c;B与C的交集必须>n/2。 代码如下&#xff1a; 1 #include <iostream>2 #include<algorithm>3 #in…

hiho1014(trie树)

题目连接&#xff1a;https://hihocoder.com/problemset/problem/1014 1 #include<cstdio>2 #include<cstring>3 const int maxn110;4 struct trie5 {6 char a;7 int cnt;8 trie* nex[26];9 trie() 10 { 11 cnt0; 12 memset(n…

python 自动复制脚本代码

服务器脚本发布时&#xff0c;如果是分服的&#xff0c;有多个服务器&#xff0c;更新一个脚本&#xff0c;一个个地复制粘贴&#xff0c;很麻烦&#xff0c;写个脚本自动发布&#xff0c;再热更新就可以&#xff0c;记录一下 以后用 import os; import os.path; import shutil…

go语言学习之延迟执行语句

// GO 语言defer(延迟执行语句) // Go 语言的 defer 语句会将其后面跟随的语句进行延迟处理。 // 在 defer 归属的函数即将返回时&#xff0c;将延迟处理的语句按 defer 的逆序进行执行&#xff0c; // 也就是说&#xff0c;先被 defer 的语句最后被执行&#xff0c;最后被 def…

thinkphp-图像处理

//获取图片资源 $image new Image();$image->open(./Public/1.jpg); 1.图片信息 /* //输出图片的信息 $arr[width]$image->width(); $arr[height]$image->height(); $arr[type]$image->type(); $arr[mime]$image->mime(); $arr[size]$image->size(); echo &…