Update article.md

This commit is contained in:
Ilya Kantor 2019-10-17 16:55:19 +03:00 committed by GitHub
parent bb2a2594d8
commit 6a8b314ca0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -57,7 +57,7 @@ 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 `m`, the dollar `pattern:$` would only match the end of the whole text, so only the very last digit would be found.
```smart ```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`. "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`.
And at the text end. And at the text end.
``` ```