mirror of
https://github.com/ziishaned/learn-regex.git
synced 2025-09-02 00:53:04 -04:00
paragraph #1
This commit is contained in:
parent
f8088499c8
commit
a817604833
@ -84,24 +84,23 @@
|
|||||||
- [Multiline](#53-multiline)
|
- [Multiline](#53-multiline)
|
||||||
- [Greedy vs lazy matching](#6-greedy-vs-lazy-matching)
|
- [Greedy vs lazy matching](#6-greedy-vs-lazy-matching)
|
||||||
</div>
|
</div>
|
||||||
|
<div dir="rtl">
|
||||||
|
|
||||||
## 1. Basic Matchers
|
## 1. پایه ای ترین همخوانی
|
||||||
|
|
||||||
A regular expression is just a pattern of characters that we use to perform
|
|
||||||
search in a text. For example, the regular expression `the` means: the letter
|
|
||||||
`t`, followed by the letter `h`, followed by the letter `e`.
|
|
||||||
|
|
||||||
|
یک عبارت منظم در واقع یک الگو برای جست و جو در یک متن است. برای مثال عبارت منظم `the` به معنی : حرف
|
||||||
|
`t`, پس از آن حرف `h`, پس از آن حرف `e` است.
|
||||||
|
</div>
|
||||||
<pre>
|
<pre>
|
||||||
"the" => The fat cat sat on <a href="#learn-regex"><strong>the</strong></a> mat.
|
"the" => The fat cat sat on <a href="#learn-regex"><strong>the</strong></a> mat.
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
[Test the regular expression](https://regex101.com/r/dmRygT/1)
|
|
||||||
|
|
||||||
The regular expression `123` matches the string `123`. The regular expression is
|
<div dir="rtl">
|
||||||
matched against an input string by comparing each character in the regular
|
[عبارت منظم را در عمل ببینید](https://regex101.com/r/dmRygT/1)
|
||||||
expression to each character in the input string, one after another. Regular
|
|
||||||
expressions are normally case-sensitive so the regular expression `The` would
|
عبارت منظم `123` با رشته `123` مطابقت دارد. عبارت منظم با مقایسه حرف به حرف و کارکتر به کارکترش با متن مورد نظر تطابق را می یابد. همچنین عبارت منظم حساس به اندازه (بزرگی یا کوچکی حروف) هستند. بنابر این واژه ی `The` با `the` همخوان نیست.
|
||||||
not match the string `the`.
|
</div>
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
"The" => <a href="#learn-regex"><strong>The</strong></a> fat cat sat on the mat.
|
"The" => <a href="#learn-regex"><strong>The</strong></a> fat cat sat on the mat.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user