mirror of
https://github.com/any86/any-rule.git
synced 2025-07-14 15:38:58 +08:00
feat: 增加大于0小于150判断
This commit is contained in:
parent
46b317f8c6
commit
8525f69bb1
@ -1,7 +1,12 @@
|
|||||||
# 正则大全   
|
# 正则大全   
|
||||||
:whale:图形界面: https://any86.github.io/any-rule/
|
:whale:图形界面: https://any86.github.io/any-rule/
|
||||||
|
|
||||||
|
|
||||||
|
## 大于0, 小于150, 支持小数位出现5, 如果145.5, 用于判断考卷分数
|
||||||
|
```javascript
|
||||||
|
/^150$|(^\d|^\d{2}|^\d[0-4]\d)(\.5)?$/
|
||||||
|
```
|
||||||
|
|
||||||
## html注释
|
## html注释
|
||||||
```javascript
|
```javascript
|
||||||
/<!--(.*?)-->$/
|
/<!--(.*?)-->$/
|
||||||
|
@ -1,4 +1,9 @@
|
|||||||
module.exports = [
|
module.exports = [
|
||||||
|
{
|
||||||
|
title: '大于0, 小于150, 支持小数位出现5, 如果145.5, 用于判断考卷分数',
|
||||||
|
rule: /^150$|(^\d|^\d{2}|^\d[0-4]\d)(\.5)?$/,
|
||||||
|
example: '150, 100.5'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: 'html注释',
|
title: 'html注释',
|
||||||
rule: /<!--(.*?)-->$/,
|
rule: /<!--(.*?)-->$/,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user