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:
2626
27271 . Find ` pattern:X ` .
28282 . 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
3434That's only possible if patterns ` pattern:Y ` and ` pattern:Z ` aren't mutually exclusive.
3535
You can’t perform that action at this time.
0 commit comments