This commit is contained in:
Ilya Kantor 2019-10-21 16:21:13 +03:00
parent 040aea0270
commit 7a6a56601e

View file

@ -140,7 +140,7 @@ To clearly understand the change, let's trace the search step by step.
![](witch_lazy6.svg)
In this example we saw how the lazy mode works for `pattern:+?`. Quantifiers `pattern:+?` and `pattern:??` work the similar way -- the regexp engine increases the number of repetitions only if the rest of the pattern can't match on the given position.
In this example we saw how the lazy mode works for `pattern:+?`. Quantifiers `pattern:*?` and `pattern:??` work the similar way -- the regexp engine increases the number of repetitions only if the rest of the pattern can't match on the given position.
**Laziness is only enabled for the quantifier with `?`.**