You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 9-regular-expressions/05-regexp-multiline-mode/article.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,7 @@ Eeyore: 3`;
54
54
alert( str.match(/\d$/gm) ); // 1,2,3
55
55
```
56
56
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.
58
58
59
59
```smart
60
60
"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