Update solution.md
This commit is contained in:
parent
62a0bb597f
commit
8c136e8be9
1 changed files with 1 additions and 1 deletions
|
@ -12,5 +12,5 @@ let reg = /\d+(\.\d+)?/g;
|
||||||
|
|
||||||
let str = "1.5 0 12. 123.4.";
|
let str = "1.5 0 12. 123.4.";
|
||||||
|
|
||||||
alert( str.match(re) ); // 1.5, 0, 12, 123.4
|
alert( str.match(reg) ); // 1.5, 0, 12, 123.4
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue