From a3a7b3ac3c16d3de9665476130406697c48aee33 Mon Sep 17 00:00:00 2001 From: Mohamed Oun Date: Sat, 26 Aug 2017 03:46:11 +0300 Subject: [PATCH] Fix a grammar typo (#88) Also added a small addition to clarify regex's default behavior without the g flag. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5650998..2fa1b74 100644 --- a/README.md +++ b/README.md @@ -498,7 +498,7 @@ The `g` modifier is used to perform a global match (find all matches rather than stopping after the first match). For example, the regular expression`/.(at)/g` means: any character except new line, followed by lowercase character `a`, followed by lowercase character `t`. Because we provided `g` flag at the end of -the regular expression now it will find every matches from whole input string. +the regular expression now it will find all matches in the input string, not just the first one (which is the default behavior).
 "/.(at)/" => The fat cat sat on the mat.