This commit is contained in:
davegregg@gmail.com 2018-05-14 09:51:20 -04:00
commit cb806aa111

View file

@ -12,5 +12,5 @@ let reg = /\d+(\.\d+)?/g;
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
```