From 37c906ca56d80ec2c28884a41331abdd66efb9c2 Mon Sep 17 00:00:00 2001 From: Saiful Date: Sun, 17 Jan 2021 10:20:15 +0600 Subject: [PATCH 1/2] fix typo --- 9-regular-expressions/14-regexp-lookahead-lookbehind/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/9-regular-expressions/14-regexp-lookahead-lookbehind/article.md b/9-regular-expressions/14-regexp-lookahead-lookbehind/article.md index 48c82da1..72e8b316 100644 --- a/9-regular-expressions/14-regexp-lookahead-lookbehind/article.md +++ b/9-regular-expressions/14-regexp-lookahead-lookbehind/article.md @@ -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". From 0f65c3986f46d0399e8871dc1d1d69c435bda185 Mon Sep 17 00:00:00 2001 From: Saiful Date: Sun, 17 Jan 2021 18:08:55 +0600 Subject: [PATCH 2/2] the type name is lookbehind instead of lookahead --- .../1-find-non-negative-integers/solution.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/9-regular-expressions/14-regexp-lookahead-lookbehind/1-find-non-negative-integers/solution.md b/9-regular-expressions/14-regexp-lookahead-lookbehind/1-find-non-negative-integers/solution.md index a824409f..ebc12689 100644 --- a/9-regular-expressions/14-regexp-lookahead-lookbehind/1-find-non-negative-integers/solution.md +++ b/9-regular-expressions/14-regexp-lookahead-lookbehind/1-find-non-negative-integers/solution.md @@ -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:(?