Skip to content

Commit a55b99c

Browse files
committed
fixes #1836
1 parent 6f45ce7 commit a55b99c

File tree

1 file changed

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

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ 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:Y` (skip if isn't).
30-
4. If both tests passed, then it's the match.
29+
3. Check if `pattern:Z` is also immediately after `pattern:X` (skip if isn't).
30+
4. If both tests passed, then the `pattern:X` is a match, otherwise continue searching.
3131

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

3434
That's only possible if patterns `pattern:Y` and `pattern:Z` aren't mutually exclusive.
3535

0 commit comments

Comments
 (0)