Regex: change description of lookarounds limitations
This commit is contained in:
parent
3d0a0f1369
commit
b59ad2f09d
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user