Skip to content

Commit a260bae

Browse files
committed
fix
1 parent 3df6388 commit a260bae

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎9-regular-expressions/13-regexp-alternation/02-find-matching-bbtags/solution.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ let str = `
2020
alert( str.match(regexp) ); // [b]hello![/b],[quote][url]http://google.com[/url][/quote]
2121
```
2222

23-
Please note that we had to escape a slash for the closing tag `pattern:[/\1]`, because normally the slash closes the pattern.
23+
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.

‎9-regular-expressions/13-regexp-alternation/02-find-matching-bbtags/task.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Normal:
1515
[url] [b]http://google.com[/b] [/url]
1616
[quote] [b]text[/b] [/quote]
1717
18-
Impossible:
18+
Can't happen:
1919
[b][b]text[/b][/b]
2020
```
2121

0 commit comments

Comments
 (0)