Skip to content

Commit e20b1a4

Browse files
authored
Adding missing 'pattern:'
Adding missing 'pattern:' next to 'm' in the line "Without the flag `m`"
1 parent 24224dc commit e20b1a4

File tree

1 file changed

+1
-1
lines changed
  • 9-regular-expressions/05-regexp-multiline-mode

1 file changed

+1
-1
lines changed

‎9-regular-expressions/05-regexp-multiline-mode/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Eeyore: 3`;
5454
alert( str.match(/\d$/gm) ); // 1,2,3
5555
```
5656

57-
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.
57+
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.
5858

5959
```smart
6060
"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`.

0 commit comments

Comments
 (0)