Skip to content

Commit 6dbd306

Browse files
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.
1 parent bd6052f commit 6dbd306

File tree

1 file changed

+1
-1
lines changed
  • 9-regular-expressions/14-regexp-lookahead-lookbehind

1 file changed

+1
-1
lines changed

9-regular-expressions/14-regexp-lookahead-lookbehind/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ More complex tests are possible, e.g. `pattern:X(?=Y)(?=Z)` means:
2626

2727
1. Find `pattern:X`.
2828
2. Check if `pattern:Y` is immediately after `pattern:X` (skip if isn't).
29-
3. Check if `pattern:Z` is immediately after `pattern:X` (skip if isn't).
29+
3. Check if `pattern:Z` is immediately after `pattern:Y` (skip if isn't).
3030
4. If both tests passed, then it's the match.
3131

3232
In other words, such pattern means that we're looking for `pattern:X` followed by `pattern:Y` and `pattern:Z` at the same time.

0 commit comments

Comments
 (0)