File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
9-regular-expressions/14-regexp-lookahead-lookbehind Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -26,10 +26,10 @@ More complex tests are possible, e.g. `pattern:X(?=Y)(?=Z)` means:
26
26
27
27
1 . Find ` pattern:X ` .
28
28
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 .
31
31
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.
33
33
34
34
That's only possible if patterns ` pattern:Y ` and ` pattern:Z ` aren't mutually exclusive.
35
35
You can’t perform that action at this time.
0 commit comments