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
: A space symbol: includes spaces, tabs `\t`, newlines `\n` and few other rare characters, such as `\v`, `\f` and `\r`.
43
+
`pattern:\s` ("s" مخفف "space(فاصله)")
44
+
: یک علامت فاصله: شامل فاصلهها، تب ها `t\`، خطوط جدید `n\` و چند کاراکتر کمیاب دیگر، مانند `v\`، `f\` و `r\`.
45
45
46
46
`pattern:\w` ("w" is from "word")
47
-
: A "wordly" character: either a letter of Latin alphabet or a digit or an underscore `_`. Non-Latin letters (like cyrillic or hindi) do not belong to `pattern:\w`.
47
+
: یک کاراکتر "کلمه ای": یا یک حرف الفبای لاتین یا یک رقم یا زیرخط `_`. حروف غیر لاتین (مانند سیریلیک یا هندی) به `pattern:\w` تعلق ندارند.
48
48
49
-
For instance, `pattern:\d\s\w`means a "digit" followed by a "space character" followed by a "wordly character", such as`match:1 a`.
49
+
به عنوان مثال، `pattern:\d\s\w`به معنای یک `رقم` است که به دنبال آن یک `کاراکتر فاصله` و به دنبال آن یک `کاراکتر واژهای` مانند`match:1 a`.
50
50
51
-
**A regexp may contain both regular symbols and character classes.**
51
+
**یک regexp ممکن است شامل نمادهای معمولی و کلاس های کاراکتر باشد.**
52
52
53
-
For instance,`pattern:CSS\d`matches a string `match:CSS`with a digit after it:
53
+
برای مثال،`pattern:CSS\d`با رشته `Match:CSS`با یک رقم بعد از آن مطابقت دارد:
54
54
55
55
```js run
56
56
let str ="Is there CSS4?";
@@ -59,13 +59,13 @@ let regexp = /CSS\d/
59
59
alert( str.match(regexp) ); // CSS4
60
60
```
61
61
62
-
Also we can use many character classes:
62
+
همچنین می توانیم از بسیاری از کلاس های کاراکتر استفاده کنیم:
63
63
64
64
```js run
65
65
alert( "I love HTML5!".match(/\s\w\w\w\w\d/) ); // ' HTML5'
66
66
```
67
67
68
-
The match (each regexp character class has the corresponding result character):
68
+
مطابقت (هر کلاس کاراکتر regexp دارای کاراکتر نتیجه مربوطه است):
0 commit comments