diff options
| author | Maxime Coste <mawww@kakoune.org> | 2017-10-16 09:38:02 +0800 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2017-11-01 14:05:15 +0800 |
| commit | b59ad2f09d245a4406957696317ad65c6c19ea01 (patch) | |
| tree | abb0c2111068691d800e39e62baa8622ea97d4d6 /doc | |
| parent | 3d0a0f1369773d3150d6fc7e6b4ba51da012255f (diff) | |
Regex: change description of lookarounds limitations
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/manpages/regex.asciidoc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/manpages/regex.asciidoc b/doc/manpages/regex.asciidoc index 5739bd20..9ff56486 100644 --- a/doc/manpages/regex.asciidoc +++ b/doc/manpages/regex.asciidoc @@ -151,9 +151,9 @@ More complex assertions can be expressed with lookarounds: * `(?<!...)` is a negative lookbehind, it will match if its content does not match the text preceding the current position -For performance reasons lookaround contents cannot be an arbitrary -regular expression, it must be sequence of literals, character classes -or any-character (`.`), and the use of quantifiers are not supported. +For performance reasons lookaround contents must be sequence of literals, +character classes or any-character (`.`); The use of quantifiers +are not supported. For example, `(?<!bar)(?=foo).` will match any character which is not preceded by `bar` and where `foo` matches from the current position |
