Update solution.md

This commit is contained in:
Ilya Kantor 2018-05-10 18:47:32 +03:00 committed by GitHub
parent 62a0bb597f
commit 8c136e8be9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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