当前位置:网站首页>Regular expression verification version number
Regular expression verification version number
2022-07-29 08:42:00 【* listen to the wind】
demand : Verify version number ( The rules :X.Y.Z(1-99.0-99.0-99)
)
requirement :
1) Must be three , for example :x.x.x
In the form of ;
2) Per person x
The ranges are 1-99,0-99,0-99
;
3) Not allowed :0.x.x,01.x.x,x.0x.x, x.00.x, x.x.00, x.x.0x
Code :
{
required: true,
pattern: /^[1-9]\d?(\.([1-9]?\d)){2}$/,
message: " The format of the version number is :X.Y.Z(1-99.0-99.0-99)",
trigger: "blur"
}
Scenario of successful verification :
Scenario of verification failure :
边栏推荐
- Brief introduction and use of commonjs import and export and ES6 modules import and export
- What are the backup and recovery methods of gbase 8s database
- Amazfit dial toolbox Online
- C language watch second kill assist repeatedly
- Sword finger offer 50. the first character that appears only once
- Ga-rpn: recommended area network for guiding anchors
- Leetcode Hot 100 (brush question 9) (301/45/517/407/offer62/mst08.14/)
- Source code compilation pytorch pit
- 优秀的Allegro Skill推荐
- Data is the main body of future world development, and data security should be raised to the national strategic level
猜你喜欢
Deep learning (2): image and character recognition
Data is the main body of future world development, and data security should be raised to the national strategic level
7.2-function-overloading
Day13: file upload vulnerability
Centos7/8 command line installation Oracle11g
Simple operation of SQL server data table
Count the list of third-party components of an open source project
[from_bilibili_dr_can][[advanced control theory] 9_ State observer design] [learning record]
(视频+图文)机器学习入门系列-第2章 线性回归
Second week of postgraduate freshman training: convolutional neural network foundation
随机推荐
7.2-function-overloading
commonjs导入导出与ES6 Modules导入导出简单介绍及使用
leetcode hot 100(刷题篇9)(301/45/517/407/offer62/MST08.14/)
Amazfit dial toolbox Online
Day6: use PHP to write file upload page
6.3 references
Cloud security daily 220712: the IBM integration bus integration solution has found a vulnerability in the execution of arbitrary code, which needs to be upgraded as soon as possible
Clickhouse learning (III) table engine
LeetCode力扣题目总结(题目编号:53、3、141、面试题022、剑指offer链表中环的入口节点、20、19、牛客NC1、103、1143、牛客127)
Tensorboard use
Demonstration and solution of dirty reading, unrepeatable reading and unreal reading
Day4: SQL server is easy to use
Gan: generate adversarial networks
RPC and rest
2022 electrician (elementary) test question simulation test platform operation
Vs2019 compilation cryengine failure problem handling
Transaction management in SQL Server
What if official account does not support markdown format file preparation?
优秀的Allegro Skill推荐
RESTful 风格详解