From 163e61a208ede176bf98dd80f041d7b16ca25fb6 Mon Sep 17 00:00:00 2001 From: kosoado Date: Wed, 27 Sep 2017 06:48:12 -0500 Subject: [PATCH] Fix typo --- .../15-regexp-infinite-backtracking-problem/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/5-regular-expressions/15-regexp-infinite-backtracking-problem/article.md b/5-regular-expressions/15-regexp-infinite-backtracking-problem/article.md index 211e883a..5dd4c446 100644 --- a/5-regular-expressions/15-regexp-infinite-backtracking-problem/article.md +++ b/5-regular-expressions/15-regexp-infinite-backtracking-problem/article.md @@ -121,7 +121,7 @@ What happen during the search of `pattern:(\d+)*$` in the line `subject:12345678 \d+....... (123456789)z ``` -2. Then it tries to apply the start around the parentheses `pattern:(\d+)*`, but there are no more digits, so it the star doesn't give anything. +2. Then it tries to apply the star around the parentheses `pattern:(\d+)*`, but there are no more digits, so it the star doesn't give anything. Then the pattern has the string end anchor `pattern:$`, and in the text we have `subject:z`.