From e20b1a4843b8fc798746bbbbd6bde0f033da6e8c Mon Sep 17 00:00:00 2001 From: Aakodal <48600424+Aakodal@users.noreply.github.com> Date: Fri, 8 May 2020 19:54:28 +0000 Subject: [PATCH] Adding missing 'pattern:' Adding missing 'pattern:' next to 'm' in the line "Without the flag `m`" --- 9-regular-expressions/05-regexp-multiline-mode/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/9-regular-expressions/05-regexp-multiline-mode/article.md b/9-regular-expressions/05-regexp-multiline-mode/article.md index 539f9fa2..f8ac08ec 100644 --- a/9-regular-expressions/05-regexp-multiline-mode/article.md +++ b/9-regular-expressions/05-regexp-multiline-mode/article.md @@ -54,7 +54,7 @@ Eeyore: 3`; alert( str.match(/\d$/gm) ); // 1,2,3 ``` -Without the flag `m`, the dollar `pattern:$` would only match the end of the whole text, so only the very last digit would be found. +Without the flag `pattern:m`, the dollar `pattern:$` would only match the end of the whole text, so only the very last digit would be found. ```smart "End of a line" formally means "immediately before a line break": the test `pattern:$` in multiline mode matches at all positions succeeded by a newline character `\n`.