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

@ -7,7 +7,7 @@
Например:
```js
let reg = /ваше регулярное выражение/;
let regexp = /ваше регулярное выражение/;
let str = `
<html>
@ -17,7 +17,7 @@ let str = `
</html>
`;
str = str.replace(reg, `<h1>Hello</h1>`);
str = str.replace(regexp, `<h1>Hello</h1>`);
```
После этого значение `str`: