You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 9-regular-expressions/02-regexp-character-classes/article.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -184,20 +184,20 @@ We can't add or remove spaces from a regular expression and expect it to work th
184
184
In other words, in a regular expression all characters matter, spaces too.
185
185
````
186
186
187
-
## Summary
187
+
## خلاصه
188
188
189
-
There exist following character classes:
189
+
کلاس های کاراکتر زیر وجود دارد:
190
190
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` -- نمادهای فاصله، تب ها، خطوط جدید.
194
194
-`pattern:\S` -- all but `pattern:\s`.
195
-
-`pattern:\w` -- Latin letters, digits, underscore`'_'`.
195
+
-`pattern:\w` -- حروف لاتین، اعداد، خط زیر`'_'`.
196
196
-`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\`.
198
198
199
-
...But that's not all!
199
+
...اما این همه ماجرا نیست!
200
200
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
+
رمزگذاری یونیکد، که توسط جاوا اسکریپت برای رشته ها استفاده می شود، ویژگی های بسیاری را برای کاراکترها فراهم می کند، مانند: حروف به کدام زبان تعلق دارد (اگر حرف باشد)، آیا علامت نقطه گذاری است و غیره.
202
202
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