jQuery常用正则表达式
来源:互联网 发布:历城二中 知乎 编辑:程序博客网 时间:2024/06/05 14:31
//不含汉字普通账户
var name=/^[a-zA-Z][a-z0-9A-Z\_\-]{2,5}$/;
var name=/^[A-Za-z]\w{2,5}$/;
//含汉字昵称u4e00-\u9fa5
var name=/^[a-zA-Z\u4e00-\u9fa5][a-zA-Z0-9\u4e00-\u9fa5]{1,5}$/;
//密码
var Pwd=/^[A-Za-z0-9][A-Za-z0-9\!\@\#\$\%\_\*\-]{5,15}$/;
//邮件
var email=/^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-])+/;
//手机
var phone=/^1[35478]\d{9}$/
//电话
var cellphone=/^\d{4}-\d{8}$/
//地址
var adder=/^[\u4E00-\u9FA5\uF900-\ufA2D][\a-zA-Z0-9_\u4E00-\u9FA5\uF900-\ufA2D]{3,}$/;
var name=/^[a-zA-Z][a-z0-9A-Z\_\-]{2,5}$/;
var name=/^[A-Za-z]\w{2,5}$/;
//含汉字昵称u4e00-\u9fa5
var name=/^[a-zA-Z\u4e00-\u9fa5][a-zA-Z0-9\u4e00-\u9fa5]{1,5}$/;
//密码
var Pwd=/^[A-Za-z0-9][A-Za-z0-9\!\@\#\$\%\_\*\-]{5,15}$/;
//邮件
var email=/^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-])+/;
//手机
var phone=/^1[35478]\d{9}$/
//电话
var cellphone=/^\d{4}-\d{8}$/
//地址
var adder=/^[\u4E00-\u9FA5\uF900-\ufA2D][\a-zA-Z0-9_\u4E00-\u9FA5\uF900-\ufA2D]{3,}$/;
0 0
- jQuery常用正则表达式
- jQuery常用正则表达式
- jquery常用正则表达式
- jQuery常用的正则表达式
- jquery js 常用正则表达式
- jQuery常用的正则表达式
- jQuery常用的正则表达式
- jquery 常用正则表达式验证
- jquery正则匹配js正则常用表达式
- jQuery源码分析-02正则表达式-RegExp-常用正则表达式
- JQuery源码分析-02正则表达式-RegExp-常用正则表达式
- jQuery源码分析-02正则表达式-RegExp-常用正则表达式
- jQuery源码分析-02正则表达式-RegExp-常用正则表达式
- jQuery源码分析-02正则表达式-RegExp-常用正则表达式
- jQuery源码分析-02正则表达式-RegExp-常用正则表达式
- jquery常用见的正则表达式
- jQuery源码学习:常用正则表达式
- 常用jQuery数字类型的正则表达式
- faial: refusing to merge unrelated histories
- Gartner:当商业智能成熟度低时,如何加快分析采用率
- 【深度学习论文】Fast-RCNN
- 3. Longest Substring Without Repeating Characters
- 医疗行业专业术语知识
- jQuery常用正则表达式
- 【深度学习论文】Faster-RCNN
- HDU 4449 Building Design 三维凸包+空间坐标转换+二维凸包
- 2016 年崛起的 JS 项目
- 找回Windows连接过的无线网密码
- jQuery之自定义动画
- 剑指Offer——(4)重建二叉树
- react-native-barcodescanner扫码第二次进去黑屏
- Fast Json的使用