From 8a0058d6e0b5dc66e7e0e8406a49b58601268909 Mon Sep 17 00:00:00 2001 From: Ilya Kantor Date: Sun, 17 May 2020 23:44:18 +0300 Subject: [PATCH] closes #1882 --- 9-regular-expressions/11-regexp-groups/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/9-regular-expressions/11-regexp-groups/article.md b/9-regular-expressions/11-regexp-groups/article.md index 6fdf727a..e559fd87 100644 --- a/9-regular-expressions/11-regexp-groups/article.md +++ b/9-regular-expressions/11-regexp-groups/article.md @@ -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