Skip to content

Commit 59b801a

Browse files
translate until line-42
1 parent ef7ba95 commit 59b801a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

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

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ console.log( str.match(/^\d/gm) ); // 1, 2, 3
2020
*/!*
2121
```
2222

23-
Without the flag `pattern:m` only the first digit is matched:
23+
بدون پرچم `pattern:m` تنها رقم اول مطابقت دارد:
2424

2525
```js run
2626
let str = `1st place: Winnie
@@ -32,12 +32,12 @@ console.log( str.match(/^\d/g) ); // 1
3232
*/!*
3333
```
3434

35-
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.
35+
دلیلش این است که به طور پیش‌ فرض یک `^:pattern` فقط در ابتدای متن و در حالت چند خطی - در ابتدای هر خط مطابقت دارد.
3636

3737
```smart
38-
"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`.
38+
"شروع یک خط" به طور رسمی به معنای "بلافاصله پس از شکست خط" است: "^:pattern" آزمایشی در حالت چند خطی در همه موقعیت هایی که قبل از یک کاراکتر خط جدید "n\" قرار دارند مطابقت دارد.
3939
40-
And at the text start.
40+
و در شروع متن.
4141
```
4242

4343
## Searching at line end $

0 commit comments

Comments
 (0)