From 691730570a377d167967c1f300497d08ff050ae3 Mon Sep 17 00:00:00 2001 From: HynekS Date: Wed, 11 Mar 2020 21:57:18 +0100 Subject: [PATCH] fix: 2 lines of russian to english and a typo (mathces -> matches) --- 9-regular-expressions/11-regexp-groups/article.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/9-regular-expressions/11-regexp-groups/article.md b/9-regular-expressions/11-regexp-groups/article.md index ab25066d..6fdf727a 100644 --- a/9-regular-expressions/11-regexp-groups/article.md +++ b/9-regular-expressions/11-regexp-groups/article.md @@ -218,8 +218,8 @@ let results = '

'.matchAll(/<(.*?)>/gi); for(let result of results) { alert(result); - // первый вывод:

,h1 - // второй:

,h2 + // first alert:

,h1 + // second:

,h2 } ``` @@ -249,7 +249,7 @@ The call to `matchAll` does not perform the search. Instead, it returns an itera So, there will be found as many results as needed, not more. -E.g. there are potentially 100 matches in the text, but in a `for..of` loop we found 5 of them, then decided it's enough and make a `break`. Then the engine won't spend time finding other 95 mathces. +E.g. there are potentially 100 matches in the text, but in a `for..of` loop we found 5 of them, then decided it's enough and make a `break`. Then the engine won't spend time finding other 95 matches. ``` ## Named groups