From f359e2e1f6b59a0328fe908781f2ea38d69ba432 Mon Sep 17 00:00:00 2001 From: SHUBHAM VERMA <47259965+celestial-shubham@users.noreply.github.com> Date: Tue, 30 Aug 2022 23:15:49 +0530 Subject: [PATCH] fixed pattern example for quantifier inRegExp it was confusing for beginners like me in regEx ,so I fixed it --- 12_Day_Regular_expressions/12_day_regular_expressions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/12_Day_Regular_expressions/12_day_regular_expressions.md b/12_Day_Regular_expressions/12_day_regular_expressions.md index ef83882..e40c4db 100644 --- a/12_Day_Regular_expressions/12_day_regular_expressions.md +++ b/12_Day_Regular_expressions/12_day_regular_expressions.md @@ -377,7 +377,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'] ```