![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JavaScript
文章平均质量分 81
ytmmc
这个作者很懒,什么都没留下…
展开
-
常用正则表达式,常用表单验证javascript代码(转)
function f_MobilCheck(as_SourceString){ if(as_SourceString.match(/^13[0-9]{9}$/g)) return true; //手机号为13开头的11位数字 else if(as_SourceString.match(/^[0]{1}[0-9]{2,3}[2-8]{1}[0-9]{5,7}$/g)) return true; ...原创 2011-09-19 11:24:56 · 149 阅读 · 0 评论 -
Extjs正则表达式小结
使用extJs时能常用的正则表达式 "^\d+$" //非负整数(正整数 + 0) "^[0-9]*[1-9][0-9]*$" //正整数 "^((-\d+)|(0+))$" //非正整数(负整数 + 0) "^-[0-9]*[1-9][0-9]*$" //负整数 "^-?\d+$" //整数 "^\d+(\.\d+)?$" //非负浮点数(正浮点数 + 0)原创 2011-09-19 13:47:25 · 102 阅读 · 0 评论