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: README.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -253,7 +253,7 @@ character `e`.
253
253
In regular expression braces that are also called quantifiers are used to
254
254
specify the number of times that a character or a group of characters can be
255
255
repeated. For example, the regular expression `[0-9]{2,3}` means: Match at least
256
-
2 digits but not more than 3 (characters in the range of 0 to 9).
256
+
2 digits but not more than 3 (characters in the range of 0 to 9).
257
257
258
258
<pre>
259
259
"[0-9]{2,3}" => The number was 9.<ahref="#learn-regex"><strong>999</strong></a>7 but we rounded it off to <ahref="#learn-regex"><strong>10</strong></a>.0.
@@ -422,7 +422,7 @@ shorthand character sets are as follows:
422
422
## 4. Lookaround
423
423
424
424
Lookbehind and lookahead (also called lookaround) are specific types of
425
-
***non-capturing groups*** (Used to match the pattern but not included in matching
425
+
***non-capturing groups*** (used to match the pattern but not included in matching
426
426
list). Lookarounds are used when we have the condition that this pattern is
427
427
preceded or followed by another certain pattern. For example, we want to get all
428
428
numbers that are preceded by `$` character from the following input string
@@ -579,8 +579,8 @@ at the end of each line in a string.
579
579
[Test the regular expression](https://regex101.com/r/E88WE2/1)
580
580
581
581
## 6. Greedy vs lazy matching
582
-
By default regex will do greedy matching , means it will match as long as
583
-
possible. we can use `?` to match in lazy way means as short as possible
582
+
By default regex will do greedy matching which means it will match as long as
583
+
possible. We can use `?` to match in lazy way which means as short as possible.
584
584
585
585
<pre>
586
586
"/(.*at)/" => <ahref="#learn-regex"><strong>The fat cat sat on the mat</strong></a>. </pre>
0 commit comments