其他分享
首页 > 其他分享> > 正则验证合集

正则验证合集

作者:互联网

https://c.runoob.com/front-end/854 //正则表达式在线测试 | 菜鸟工具

 

//版本号验证 V**.**.**
    1.^([V]+[1-9]{1}[0-9]{0,2})+(\.[0-9]{2})+(\.[0-9]{2})$
    2.  
        version: {
            pattern: /^([V])+([1-9]\d|[1-9])(.([1-9]\d|\d)){2}$/,
            message: '版本格式错误',
            trigger: ['blur', 'change']
         },            

 

标签:854,end,验证,版本号,菜鸟,正则,message,合集
来源: https://www.cnblogs.com/DeerLin/p/14754335.html