Skip to content

Commit e65ca24

Browse files
translate summary part
1 parent dc5a969 commit e65ca24

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

  • 9-regular-expressions/02-regexp-character-classes

9-regular-expressions/02-regexp-character-classes/article.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -184,20 +184,20 @@ We can't add or remove spaces from a regular expression and expect it to work th
184184
In other words, in a regular expression all characters matter, spaces too.
185185
````
186186

187-
## Summary
187+
## خلاصه
188188

189-
There exist following character classes:
189+
کلاس های کاراکتر زیر وجود دارد:
190190

191-
- `pattern:\d` -- digits.
192-
- `pattern:\D` -- non-digits.
193-
- `pattern:\s` -- space symbols, tabs, newlines.
191+
- `pattern:\d` -- رقمی.
192+
- `pattern:\D` -- غیر رقمی.
193+
- `pattern:\s` -- نمادهای فاصله، تب ها، خطوط جدید.
194194
- `pattern:\S` -- all but `pattern:\s`.
195-
- `pattern:\w` -- Latin letters, digits, underscore `'_'`.
195+
- `pattern:\w` -- حروف لاتین، اعداد، خط زیر `'_'`.
196196
- `pattern:\W` -- all but `pattern:\w`.
197-
- `pattern:.` -- any character if with the regexp `'s'` flag, otherwise any except a newline `\n`.
197+
- `pattern:.` -- هر کاراکتری اگر `regxp` با پرچم `'s'`، در غیر این صورت هر کاراکتری به جز خط جدید `n\`.
198198

199-
...But that's not all!
199+
...اما این همه ماجرا نیست!
200200

201-
Unicode encoding, used by JavaScript for strings, provides many properties for characters, like: which language the letter belongs to (if it's a letter), is it a punctuation sign, etc.
201+
رمزگذاری یونیکد، که توسط جاوا اسکریپت برای رشته ها استفاده می شود، ویژگی های بسیاری را برای کاراکترها فراهم می کند، مانند: حروف به کدام زبان تعلق دارد (اگر حرف باشد)، آیا علامت نقطه گذاری است و غیره.
202202

203-
We can search by these properties as well. That requires flag `pattern:u`, covered in the next article.
203+
ما می توانیم بر اساس این ویژگی ها نیز جستجو کنیم. برای این کار باید`pattern:u` را علامت گذاری کنید که در مقاله بعدی پوشش داده شده است.

0 commit comments

Comments
 (0)