Tell us what’s happening:
Hi, i’m not sure what does \D*
part of my code contribute to the solution? Doesn’t \w{6,}
already imply 6 or more characters?
Your code so far
let sampleWord = "astronaut";
let pwRegex = /(?=\w{6,})(?=\D*\d{2})/gi; // Change this line
let result = pwRegex.test(sampleWord);
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:122.0) Gecko/20100101 Firefox/122.0
Challenge Information:
Regular Expressions - Positive and Negative Lookahead