Skip to content

Commit d1ae5ee

Browse files
authored
Merge pull request ziishaned#172 from rruc/master
Correct typos
2 parents dd12d9f + 65c7e3e commit d1ae5ee

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ character `e`.
253253
In regular expression braces that are also called quantifiers are used to
254254
specify the number of times that a character or a group of characters can be
255255
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).
257257

258258
<pre>
259259
"[0-9]{2,3}" => The number was 9.<a href="#learn-regex"><strong>999</strong></a>7 but we rounded it off to <a href="#learn-regex"><strong>10</strong></a>.0.
@@ -422,7 +422,7 @@ shorthand character sets are as follows:
422422
## 4. Lookaround
423423

424424
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
426426
list). Lookarounds are used when we have the condition that this pattern is
427427
preceded or followed by another certain pattern. For example, we want to get all
428428
numbers that are preceded by `$` character from the following input string
@@ -579,8 +579,8 @@ at the end of each line in a string.
579579
[Test the regular expression](https://regex101.com/r/E88WE2/1)
580580

581581
## 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.
584584

585585
<pre>
586586
"/(.*at)/" => <a href="#learn-regex"><strong>The fat cat sat on the mat</strong></a>. </pre>

0 commit comments

Comments
 (0)