随笔分类 -  正则验证

摘要:手机号(mobile phone)中国(严谨), 根据工信部2019年最新公布的手机号段 1 const reg = /^(?:(?:\+|00)86)?1(?:(?:3[\d])|(?:4[5-79])|(?:5[0-35-9])|(?:6[5-7])|(?:7[0-8])|(?:8[\d])|( 阅读全文
posted @ 2024-03-11 14:00 Deer_Lin 阅读(144) 评论(0) 推荐(0)
摘要: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: 阅读全文
posted @ 2021-05-11 10:40 Deer_Lin 阅读(72) 评论(0) 推荐(0)