Update article.md
This commit is contained in:
parent
bb2a2594d8
commit
6a8b314ca0
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue