the type name is lookbehind instead of lookahead
This commit is contained in:
parent
37c906ca56
commit
0f65c3986f
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
The regexp for an integer number is `pattern:\d+`.
|
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:
|
Although, if we try it now, we may notice one more "extra" result:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue