This commit is contained in:
joaquinelio 2021-04-11 01:37:21 -03:00 committed by GitHub
parent 7b76185892
commit 6de9d70114
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,7 +35,7 @@ alert( str.match(/^\d/g) ); // 1
That's because by default a caret `pattern:^` only matches at the beginning of the text, and in the multiline mode -- at the start of any line. That's because by default a caret `pattern:^` only matches at the beginning of the text, and in the multiline mode -- at the start of any line.
```smart ```smart
"Start of a line" formally means "immediately after a line break": the test `pattern:^` in multiline mode matches at all positions preceeded by a newline character `\n`. "Start of a line" formally means "immediately after a line break": the test `pattern:^` in multiline mode matches at all positions preceded by a newline character `\n`.
And at the text start. And at the text start.
``` ```