This commit is contained in:
Ilya Kantor 2020-05-17 23:44:18 +03:00
parent c331e443d8
commit 8a0058d6e0

View file

@ -18,7 +18,7 @@ Without parentheses, the pattern `pattern:go+` means `subject:g` character, foll
Parentheses group characters together, so `pattern:(go)+` means `match:go`, `match:gogo`, `match:gogogo` and so on.
```js run
alert( 'Gogogo now!'.match(/(go)+/i) ); // "Gogogo"
alert( 'Gogogo now!'.match(/(go)+/ig) ); // "Gogogo"
```
### Example: domain