fix
This commit is contained in:
parent
8f2705253a
commit
4974ad9fa7
2 changed files with 8 additions and 6 deletions
|
@ -6,7 +6,7 @@ An example of use:
|
|||
```js
|
||||
let reg = /your regexp/g;
|
||||
|
||||
let str = "1.5 0 12. 123.4.";
|
||||
let str = "1.5 0 -5 12. 123.4.";
|
||||
|
||||
alert( str.match(reg) ); // 1.5, 0, 12, 123.4
|
||||
alert( str.match(reg) ); // 1.5, 12, 123.4 (ignores 0 and -5)
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue