Skip to content

Commit 5249604

Browse files
authored
Merge pull request #219 from Hobinx/patch-2
Fix typo
2 parents 6dd1311 + 163e61a commit 5249604

File tree

1 file changed

+1
-1
lines changed
  • 5-regular-expressions/15-regexp-infinite-backtracking-problem

1 file changed

+1
-1
lines changed

5-regular-expressions/15-regexp-infinite-backtracking-problem/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ What happen during the search of `pattern:(\d+)*$` in the line `subject:12345678
121121
\d+.......
122122
(123456789)z
123123
```
124-
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.
124+
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.
125125
126126
Then the pattern has the string end anchor `pattern:$`, and in the text we have `subject:z`.
127127

0 commit comments

Comments
 (0)