30-Days-Of-JavaScript
30-Days-Of-JavaScript copied to clipboard
Day12-Quantifier in RegExp
origin:
const txt = 'This regular expression example was made in December 6, 2019.'
const pattern = /\\b\w{4}\b/g // exactly four character words
const matches = txt.match(pattern)
console.log(matches) //['This', 'made', '2019']
but the resault is null in my test maybe you have used one more \
the correct would be like:
const pattern = /\b\w{4}\b/g
Hello Iam new to open source I have good knowledge in javascript and I want to contribute to your challenge so will you merge my branch if I share it with you
Hello maybe you have sent this message to wrong people, I just find a little bug in this challenge , and this challenge belongs to Asabeneh