From 8c1912d000ad13d74da169898d64ec07bcb55ef7 Mon Sep 17 00:00:00 2001 From: danieloi Date: Fri, 22 Sep 2017 21:24:31 -0400 Subject: [PATCH] Gammar edit (#96) Added is to section 4.2 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7abb97d..4e1a6f3 100644 --- a/README.md +++ b/README.md @@ -421,7 +421,7 @@ or `the` which are followed by the word `fat`. ### 4.2 Negative Lookahead Negative lookahead is used when we need to get all matches from input string -that are not followed by a pattern. Negative lookahead defined same as we define +that are not followed by a pattern. Negative lookahead is defined same as we define positive lookahead but the only difference is instead of equal `=` character we use negation `!` character i.e. `(?!...)`. Let's take a look at the following regular expression `(T|t)he(?!\sfat)` which means: get all `The` or `the` words