From 6dbd3060e1e81023730b5a8fd3951211a7d68204 Mon Sep 17 00:00:00 2001 From: Sohail Ashraf Date: Wed, 29 Jan 2020 13:38:00 +0800 Subject: [PATCH] Fixing a typo Check if `pattern:Y` is immediately after `pattern:X` and then the regex will check if Z is immediately after Y, Like this it's more understandable. --- 9-regular-expressions/14-regexp-lookahead-lookbehind/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/9-regular-expressions/14-regexp-lookahead-lookbehind/article.md b/9-regular-expressions/14-regexp-lookahead-lookbehind/article.md index 31393cd0..c7eb2843 100644 --- a/9-regular-expressions/14-regexp-lookahead-lookbehind/article.md +++ b/9-regular-expressions/14-regexp-lookahead-lookbehind/article.md @@ -26,7 +26,7 @@ More complex tests are possible, e.g. `pattern:X(?=Y)(?=Z)` means: 1. Find `pattern:X`. 2. Check if `pattern:Y` is immediately after `pattern:X` (skip if isn't). -3. Check if `pattern:Z` is immediately after `pattern:X` (skip if isn't). +3. Check if `pattern:Z` is immediately after `pattern:Y` (skip if isn't). 4. If both tests passed, then it's the match. In other words, such pattern means that we're looking for `pattern:X` followed by `pattern:Y` and `pattern:Z` at the same time.