30-Days-Of-JavaScript icon indicating copy to clipboard operation
30-Days-Of-JavaScript copied to clipboard

Day12-Quantifier in RegExp

Open ssssb1 opened this issue 3 years ago • 2 comments

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

ssssb1 avatar Jul 27 '22 01:07 ssssb1

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

KORLA2 avatar Aug 18 '22 15:08 KORLA2

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

ssssb1 avatar Aug 19 '22 11:08 ssssb1