This commit is contained in:
Ilya Kantor 2019-01-14 16:59:56 +03:00
parent 8f2705253a
commit 4974ad9fa7
2 changed files with 8 additions and 6 deletions

View file

@ -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)
```