Merge pull request #2445 from msisaifu/fix-typo

fix typo
This commit is contained in:
Ilya Kantor 2021-01-21 22:52:20 +03:00 committed by GitHub
commit 354c633803
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
The regexp for an integer number is `pattern:\d+`.
We can exclude negatives by prepending it with the negative lookahead: `pattern:(?<!-)\d+`.
We can exclude negatives by prepending it with the negative lookbehind: `pattern:(?<!-)\d+`.
Although, if we try it now, we may notice one more "extra" result:

View file

@ -1,6 +1,6 @@
# Lookahead and lookbehind
Sometimes we need to find only those matches for a pattern that are followed or preceeded by another pattern.
Sometimes we need to find only those matches for a pattern that are followed or preceded by another pattern.
There's a special syntax for that, called "lookahead" and "lookbehind", together referred to as "lookaround".