diff --git a/docs/12-day.md b/docs/12-day.md index 30443ab..b172a42 100644 --- a/docs/12-day.md +++ b/docs/12-day.md @@ -333,7 +333,7 @@ We can specify the length of the substring we look for in a text, using a curly ```js const txt = 'This regular expression example was made in December 6, 2019.' -const pattern = /\\b\w{4}\b/g // exactly four character words +const pattern = /\b\w{4}\b/g // exactly four character words const matches = txt.match(pattern) console.log(matches) //['This', 'made', '2019'] ``` @@ -488,4 +488,4 @@ I am a teacher and I love teaching There is nothing as more rewarding as educati [{word:'I', count:3}, {word:'teaching', count:2}, {word:'teacher', count:2}] ``` -🎉 CONGRATULATIONS ! 🎉 \ No newline at end of file +🎉 CONGRATULATIONS ! 🎉