From d1d4911e6b83cd86c11ded938d376977c5015652 Mon Sep 17 00:00:00 2001
From: Curtis Autery
Date: Wed, 26 Jul 2017 01:25:26 +0100
Subject: [PATCH 1/7] Periods in groups mean periods, not any character (#9)
---
README.md | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
index 94a3f1b..6a5e1a1 100644
--- a/README.md
+++ b/README.md
@@ -110,10 +110,10 @@ expression `[Tt]he` means: an uppercase `T` or lowercase `t`, followed by the le
"[Tt]he" => The car parked in the garage.
-Just like above example the regular expression `ar[.]` means: an lowercase character `a`, followed by letter `r`, followed by any character.
+A period inside a character set, however, means a literal period. The regular expression `ar[.]` means: a lowercase character `a`, followed by letter `r`, followed by a period.
-"ar[.]" => The car parked in the garage.
+"ar[.]" => A garage is a good place to park a car.
### 2.2.1 Negated character set
@@ -433,4 +433,4 @@ line. And beacause of `m` flag now regular expression engine matches pattern at
## License
-MIT © [Zeeshan Ahmed](mailto:ziishaned@gmail.com)
\ No newline at end of file
+MIT © [Zeeshan Ahmed](mailto:ziishaned@gmail.com)
From e663c9fac64e7b03c4730379ec7f4193d5dec7f1 Mon Sep 17 00:00:00 2001
From: dandanio
Date: Tue, 25 Jul 2017 20:27:41 -0400
Subject: [PATCH 2/7] Error in example. {2} =/= {2,3} (#10)
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 6a5e1a1..382451f 100644
--- a/README.md
+++ b/README.md
@@ -180,7 +180,7 @@ character can be repeated. For example the regular expression `[0-9]{2,3}` means
characters in the range of 0 to 9).
-"[0-9]{2}" => The number was 9.9997 but we rounded it off to 10.0.
+"[0-9]{2,3}" => The number was 9.9997 but we rounded it off to 10.0.
We can leave out the second number. For example the regular expression `[0-9]{2,}` means: Match 2 or more digits. If we also remove
From 0356005d112f0f7e6388cbbd90f781f7992b301c Mon Sep 17 00:00:00 2001
From: dandanio
Date: Tue, 25 Jul 2017 20:28:17 -0400
Subject: [PATCH 3/7] The [a-z]* does not match *The*, just *he* (#8)
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 382451f..24bfa91 100644
--- a/README.md
+++ b/README.md
@@ -139,7 +139,7 @@ of preceding lowercase character `a`. But if it appears after a character set or
character set. For example the regular expression `[a-z]*` means: any number of lowercase letters in a row.
-"[a-z]*" => The car parked in the garage #21.
+"[a-z]*" => The car parked in the garage #21.
The `*` symbol can be used with the meta character `.` to match any string of characters `.*`. The `*` symbol can be used with the
From 530f4387ba8ffc3a980263470a3970cf62afd212 Mon Sep 17 00:00:00 2001
From: Chandan Rai
Date: Wed, 26 Jul 2017 05:58:57 +0530
Subject: [PATCH 4/7] corrected typos (#6)
---
README.md | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/README.md b/README.md
index 24bfa91..865c1be 100644
--- a/README.md
+++ b/README.md
@@ -19,7 +19,7 @@ We use the following regular expression to validate a username:
-Above regular expression can accepts the strings `john_doe`, `jo-hn\_doe` and `john12\_as`. It does not match `Jo` because that string
+Above regular expression can accept the strings `john_doe`, `jo-hn\_doe` and `john12\_as`. It does not match `Jo` because that string
contains uppercase letter and also it is too short.
## Table of Contents
@@ -232,7 +232,7 @@ expression `[f|c|m]at\.?` means: lowercase letter `f`, `c` or `m`, followed by l
## 2.8 Anchors
-In regular expression to check if the matching symbol is the starting symbol or endnig symbol of the input string for this purpose
+In regular expression to check if the matching symbol is the starting symbol or ending symbol of the input string for this purpose
we use anchors. Anchors are of two types: First type is Caret `^` that check if the matching character is the start character of the
input and the second type is Dollar `$` that checks if matching character is the last character of the input string.
@@ -342,7 +342,7 @@ are after not after the word `The` or `the`.
## 5. Flags
-Flags are also called modifiers because they modifies the output of a regular expression. These flags can be used in any order or
+Flags are also called modifiers because they modify the output of a regular expression. These flags can be used in any order or
combination, and are an integral part of the RegExp.
|Flag|Description|
@@ -387,9 +387,9 @@ string.
### 5.3 Multiline
The `m` modifier is used to perform a multi line match. As we discussed earlier anchors `(^, $)` are used to check if pattern is
-the beginning of the input or end fo the input string. But if we want that anchors works on each line we use `m` flag. For example the
+the beginning of the input or end of the input string. But if we want that anchors works on each line we use `m` flag. For example the
regular expression `/at(.)?$/gm` means: lowercase character `a`, followed by lowercase character `t`, optionally anything except new
-line. And beacause of `m` flag now regular expression engine matches pattern at the end of each line in a string.
+line. And because of `m` flag now regular expression engine matches pattern at the end of each line in a string.
"/.at(.)?$/" => The fat
From 4831a466e647640533cc899cc9123c4175a41747 Mon Sep 17 00:00:00 2001
From: Ankur Sundara
Date: Tue, 25 Jul 2017 20:29:19 -0400
Subject: [PATCH 5/7] Fix lookaround link in Table of Contents (#3)
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 865c1be..8d56f86 100644
--- a/README.md
+++ b/README.md
@@ -41,7 +41,7 @@ contains uppercase letter and also it is too short.
- [Caret](#281-caret)
- [Dollar](#282-dollar)
- [Shorthand Character Sets](#3-shorthand-character-sets)
-- [Lookaround](#4-ookaround)
+- [Lookaround](#4-lookaround)
- [Positive Lookahead](#41-positive-lookahead)
- [Negative Lookahead](#42-negative-lookahead)
- [Positive Lookbehind](#43-positive-lookbehind)
From 7a1cbc5bd2634a6f1bd80ed312b2a2d90b053faa Mon Sep 17 00:00:00 2001
From: Samuel Marchal
Date: Wed, 26 Jul 2017 02:30:20 +0200
Subject: [PATCH 6/7] Minor fixes (#1)
---
README.md | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
index 8d56f86..1c1d3dc 100644
--- a/README.md
+++ b/README.md
@@ -407,15 +407,15 @@ line. And because of `m` flag now regular expression engine matches pattern at t
* *Positive Integers*: `^\d+$`
* *Negative Integers*: `^-\d+$`
-* *Phone Number*: `^+?[\d\s]{3,}$`
-* *Phone with code*: `^+?[\d\s]+(?[\d\s]{10,}$`
+* *US Phone Number*: `^+?[\d\s]{3,}$`
+* *US Phone with code*: `^+?[\d\s]+(?[\d\s]{10,}$`
* *Integers*: `^-?\d+$`
* *Username*: `^[\w\d_.]{4,16}$`
* *Alpha-numeric characters*: `^[a-zA-Z0-9]*$`
* *Alpha-numeric characters with spaces*: `^[a-zA-Z0-9 ]*$`
* *Password*: `^(?=^.{6,}$)((?=.*[A-Za-z0-9])(?=.*[A-Z])(?=.*[a-z]))^.*$`
* *email*: `^([a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4})*$`
-* *IP address*: `^((?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))*$`
+* *IPv4 address*: `^((?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))*$`
* *Lowercase letters only*: `^([a-z])*$`
* *Uppercase letters only*: `^([A-Z])*$`
* *URL*: `^(((http|https|ftp):\/\/)?([[a-zA-Z0-9]\-\.])+(\.)([[a-zA-Z0-9]]){2,4}([[a-zA-Z0-9]\/+=%&_\.~?\-]*))*$`
From 7cac291415345a24a7bf1db02b6612576aab0446 Mon Sep 17 00:00:00 2001
From: Zeeshan Ahmed
Date: Wed, 26 Jul 2017 05:38:33 +0500
Subject: [PATCH 7/7] Update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 1c1d3dc..a601d41 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
-
+
## What is Regular Expression?