From 11e08904f9e22d8dd1422f0116aadcaa87ed2b98 Mon Sep 17 00:00:00 2001 From: Osvaldo Dias dos Santos Date: Sun, 16 May 2021 14:06:13 +0100 Subject: [PATCH] Fix typo. --- 9-regular-expressions/17-regexp-methods/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/9-regular-expressions/17-regexp-methods/article.md b/9-regular-expressions/17-regexp-methods/article.md index d4092181..96e9fa71 100644 --- a/9-regular-expressions/17-regexp-methods/article.md +++ b/9-regular-expressions/17-regexp-methods/article.md @@ -247,7 +247,7 @@ alert('12-34-56'.replaceAll("-", ":")) // 12:34:56 ## regexp.exec(str) -The method `regexp.exec(str)` method returns a match for `regexp` in the string `str`. Unlike previous methods, it's called on a regexp, not on a string. +The `regexp.exec(str)` method returns a match for `regexp` in the string `str`. Unlike previous methods, it's called on a regexp, not on a string. It behaves differently depending on whether the regexp has flag `pattern:g`.