Skip to content

Commit 9f0abbf

Browse files
authored
添加小数点后几位示例 (#4)
1 parent b04aa84 commit 9f0abbf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,13 @@ E.g: `G2868`, `D22`, `D9`, `Z5`, `Z24`, `Z17`
389389
```
390390

391391
🚧 E.g: `1.22`, ~~`0223.23`~~, `0.00`。精确到 `2` 位小数
392+
393+
394+
```regex
395+
^(0|[1-9]\d{0,7}).?(([1-9]{1,2}?)|(0[1-9]))$
396+
```
397+
398+
🚧 E.g: `99999999.99`, 非零,俩位小数,最大 99999999.99 [@cuilanxin](https://github.com/jaywcjlove/regexp-example/issues/4#issuecomment-1013578631)
392399

393400
### 小数
394401

0 commit comments

Comments
 (0)