当前位置:网站首页>Regular verification of two decimal places
Regular verification of two decimal places
2022-04-22 06:13:00 【Lora_ 0925】
One 、 Two decimal places
/^(([1-9]{1}\d*)|(0{1}))(\.\d{1,2})?$/
Two 、 Less than or equal to 100 Decimal regularity of
/^(100|([1-9][0-9]?)|(0|[1-9][0-9]?)(?:\.\d{0,2}))?$/
Reading :
^: Matches the start of the input string , What does it start with
$: Matches the end of the input string , What does it end with
*: Match previous subexpression zero or more times
?: Match previous subexpression zero or once
{n}:n Is a non negative integer . Matched definite n Time
{n,m}:m and n All non negative integers , among n <= m. Least match n Times and at most m Time
\d: Matches a numeric character
x|y: matching x or y
[a-z]: character in range . Matches any character in the specified range .
版权声明
本文为[Lora_ 0925]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220546439316.html
边栏推荐
- qt.qpa.plugin: Could not find the Qt platform plugin “xcb“ in ““
- Record one installation of centos8 + postgresql9 6 + PostGIS's painful experience
- 关于常量指针、指针常量的使用--练习题(记录)
- qt Debug版本运行正常Release版本运行奔溃
- deep learning object detection
- opencv代码
- halcon与opencv或者halcon配置修改包含目录、库目录继承值的问题
- idea 代码规范检查模板 引入到idea
- String类 理解----final 不可变
- ubuntu20. Install database on terminal under 0.4
猜你喜欢
随机推荐
Record one installation of centos8 + postgresql9 6 + PostGIS's painful experience
剑指 Offer II 022. 链表中环的入口节点
Use of tab control control in MFC
形参、局部变量以及局部静态变量
内存和缓存的区别
遍历数组、对象 父子通信props/$emit
2020-10-28
String类intern()方法解析
difflib比对两个文件
el-input-number 如何设置初始值为空
TXT text content is deleted one by one
qt.qpa.plugin: Could not find the Qt platform plugin “xcb“ in ““
指针和引用的主要区别
IPI中断
File write data to local
Dynamic memory management, file operation, preprocessing
动态内存管理、文件操作、预处理
接口测试Seldom
Swelling corrosion and other morphological treatment
vector与arrange的异同(小记)









