reg->regexp

This commit is contained in:
Ilya Kantor 2019-09-06 16:50:41 +03:00
parent 4232a53219
commit 32e20fc97c
35 changed files with 132 additions and 132 deletions

View file

@ -10,8 +10,8 @@ Step by step:
In action:
```js run
let reg = /"(\\.|[^"\\])*"/g;
let regexp = /"(\\.|[^"\\])*"/g;
let str = ' .. "test me" .. "Say \\"Hello\\"!" .. "\\\\ \\"" .. ';
alert( str.match(reg) ); // "test me","Say \"Hello\"!","\\ \""
alert( str.match(regexp) ); // "test me","Say \"Hello\"!","\\ \""
```