Skip to content

Commit a3a7b3a

Browse files
Mohamed3onziishaned
authored andcommitted
Fix a grammar typo (ziishaned#88)
Also added a small addition to clarify regex's default behavior without the g flag.
1 parent 2a787a2 commit a3a7b3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ The `g` modifier is used to perform a global match (find all matches rather than
498498
stopping after the first match). For example, the regular expression`/.(at)/g`
499499
means: any character except new line, followed by lowercase character `a`,
500500
followed by lowercase character `t`. Because we provided `g` flag at the end of
501-
the regular expression now it will find every matches from whole input string.
501+
the regular expression now it will find all matches in the input string, not just the first one (which is the default behavior).
502502

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

0 commit comments

Comments
 (0)