Skip to content

Commit 63a8107

Browse files
translate until line-63
1 parent 59b801a commit 63a8107

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

  • 9-regular-expressions/05-regexp-multiline-mode

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

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,10 @@ console.log( str.match(/^\d/g) ); // 1
4040
و در شروع متن.
4141
```
4242

43-
## Searching at line end $
43+
## جستجو در انتهای خط $
44+
علامت دلار `$:pattern` رفتار مشابهی دارد.
4445

45-
The dollar sign `pattern:$` behaves similarly.
46-
47-
The regular expression `pattern:\d$` finds the last digit in every line
46+
عبارت منظم `$pattern:\d` آخرین رقم را در هر خط پیدا می کند
4847

4948
```js run
5049
let str = `Winnie: 1
@@ -54,12 +53,12 @@ Eeyore: 3`;
5453
console.log( str.match(/\d$/gm) ); // 1,2,3
5554
```
5655

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.
56+
بدون پرچم `pattern:m` و `$:pattern` دلاری فقط با انتهای کل متن مطابقت دارد، بنابراین فقط آخرین رقم پیدا می‌شود.
5857

5958
```smart
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`.
59+
"پایان یک خط" به طور رسمی به معنای "بلافاصله قبل از شکست خط" است: تست "$:pattern" در حالت چند خطی در همه موقعیت‌هایی که توسط یک کاراکتر خط جدید "n\" جایگزین می‌شود، مطابقت دارد.
6160
62-
And at the text end.
61+
و در انتهای متن.
6362
```
6463

6564
## Searching for \n instead of ^ $

0 commit comments

Comments
 (0)