Skip to content

Commit 0f65c39

Browse files
committed
the type name is lookbehind instead of lookahead
1 parent 37c906c commit 0f65c39

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • 9-regular-expressions/14-regexp-lookahead-lookbehind/1-find-non-negative-integers

9-regular-expressions/14-regexp-lookahead-lookbehind/1-find-non-negative-integers/solution.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
The regexp for an integer number is `pattern:\d+`.
33

4-
We can exclude negatives by prepending it with the negative lookahead: `pattern:(?<!-)\d+`.
4+
We can exclude negatives by prepending it with the negative lookbehind: `pattern:(?<!-)\d+`.
55

66
Although, if we try it now, we may notice one more "extra" result:
77

0 commit comments

Comments
 (0)