From b6559be43eb9620f015363bac57012fe3b6e3676 Mon Sep 17 00:00:00 2001 From: Kriti Arora <131587653+kritiarora2003@users.noreply.github.com> Date: Sat, 1 Jun 2024 10:40:03 +0530 Subject: [PATCH] Corrected typo in 12-day.md There was a typo in the Quantifier section, "const pattern = /\\b\w{4}\b/g // exactly four character words" In the above line there was an extra back slash before the first \\b. --- docs/12-day.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ! 🎉