This commit is contained in:
Ilya Kantor 2019-09-07 19:52:23 +03:00
parent 3df638871c
commit a260bae917
2 changed files with 2 additions and 2 deletions

View file

@ -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.

View file

@ -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]
```