当前位置:网站首页>正则表达式
正则表达式
2022-06-23 09:32:00 【Linging_24】
1、匹配[0,1]之间的最多两位小数。包括0和1。匹配结果:0、1、0.xx
/^(0(\.\d{1,2})?|1(\.0{1,2})?)$/
2、匹配[0,1]之间的小数,不限小数位个数。
/^(0(\.\d+)?|1(\.0+)?)$/
边栏推荐
猜你喜欢

UEFI source code learning 4.1 - pcihostbridgedxe

web--信息泄漏
![[CISCN2019 华北赛区 Day2 Web1]Hack World](/img/bf/51a24fd2f9f0e13dcd821b327b5a00.png)
[CISCN2019 华北赛区 Day2 Web1]Hack World

Thin film interference data processing
Redis learning notes - redis and Lua
Redis learning notes - slow query analysis

Click Add drop-down box

Redis学习笔记—客户端通讯协议RESP

UEFI 源码学习4.1 - PciHostBridgeDxe
Redis学习笔记—持久化机制之AOF
随机推荐
Learn SCI thesis drawing skills (E)
Redis learning notes - AOF of persistence mechanism
线性表(LinkList)的链式表示和实现----线性结构
cooding代码库的使用笔记
ionic5錶單輸入框和單選按鈕
AI: the Elephant in Room
Use Base64 to show pictures
Redis learning notes - data type: ordered set (Zset)
[wangdingbei 2020 Qinglong formation]areuserialz
Redis learning notes - Database Management
ThinkPHP 2. X/3.0 vulnerability recurrence
Structure binary tree from inorder and postorder traversal for leetcode topic analysis
Redis学习笔记—事务
swagger UI :%E2%80%8B
Common English explanations in arm
Redis learning notes - redis cli explanation
Cesium loading orthophoto scheme
学习SCI论文绘制技巧(E)
C#之Lambda不得不说的用法
[極客大挑戰 2019]HardSQL