From a260bae917d709cf9facb2d66a693dfe60b21486 Mon Sep 17 00:00:00 2001 From: Ilya Kantor Date: Sat, 7 Sep 2019 19:52:23 +0300 Subject: [PATCH] fix --- .../13-regexp-alternation/02-find-matching-bbtags/solution.md | 2 +- .../13-regexp-alternation/02-find-matching-bbtags/task.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/9-regular-expressions/13-regexp-alternation/02-find-matching-bbtags/solution.md b/9-regular-expressions/13-regexp-alternation/02-find-matching-bbtags/solution.md index 971e2e62..9b3fa187 100644 --- a/9-regular-expressions/13-regexp-alternation/02-find-matching-bbtags/solution.md +++ b/9-regular-expressions/13-regexp-alternation/02-find-matching-bbtags/solution.md @@ -20,4 +20,4 @@ let str = ` alert( str.match(regexp) ); // [b]hello![/b],[quote][url]http://google.com[/url][/quote] ``` -Please note that we had to escape a slash for the closing tag `pattern:[/\1]`, because normally the slash closes the pattern. +Please note that besides escaping `pattern:[` and `pattern:]`, we had to escape a slash for the closing tag `pattern:[\/\1]`, because normally the slash closes the pattern. diff --git a/9-regular-expressions/13-regexp-alternation/02-find-matching-bbtags/task.md b/9-regular-expressions/13-regexp-alternation/02-find-matching-bbtags/task.md index 2893a450..72d715af 100644 --- a/9-regular-expressions/13-regexp-alternation/02-find-matching-bbtags/task.md +++ b/9-regular-expressions/13-regexp-alternation/02-find-matching-bbtags/task.md @@ -15,7 +15,7 @@ Normal: [url] [b]http://google.com[/b] [/url] [quote] [b]text[/b] [/quote] -Impossible: +Can't happen: [b][b]text[/b][/b] ```