Regex: change description of lookarounds limitations

This commit is contained in:
Maxime Coste 2017-10-16 09:38:02 +08:00
parent 3d0a0f1369
commit b59ad2f09d

View File

@ -151,9 +151,9 @@ More complex assertions can be expressed with lookarounds:
* `(?<!...)` is a negative lookbehind, it will match if its content does * `(?<!...)` is a negative lookbehind, it will match if its content does
not match the text preceding the current position not match the text preceding the current position
For performance reasons lookaround contents cannot be an arbitrary For performance reasons lookaround contents must be sequence of literals,
regular expression, it must be sequence of literals, character classes character classes or any-character (`.`); The use of quantifiers
or any-character (`.`), and the use of quantifiers are not supported. are not supported.
For example, `(?<!bar)(?=foo).` will match any character which is not For example, `(?<!bar)(?=foo).` will match any character which is not
preceded by `bar` and where `foo` matches from the current position preceded by `bar` and where `foo` matches from the current position