Skip to content

Commit

Permalink
添加小数点后几位示例 (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove authored Jan 15, 2022
1 parent b04aa84 commit 9f0abbf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,13 @@ E.g: `G2868`, `D22`, `D9`, `Z5`, `Z24`, `Z17`
```

🚧 E.g: `1.22`, ~~`0223.23`~~, `0.00`。精确到 `2` 位小数


```regex
^(0|[1-9]\d{0,7}).?(([1-9]{1,2}?)|(0[1-9]))$
```

🚧 E.g: `99999999.99`, 非零,俩位小数,最大 99999999.99 [@cuilanxin](https://github.com/jaywcjlove/regexp-example/issues/4#issuecomment-1013578631)

### 小数

Expand Down

0 comments on commit 9f0abbf

Please sign in to comment.