Tell us what’s happening:
Describe your issue in detail here.
Your code so far
let sampleWord = "astronaut";
let pwRegex = /^\D(?=\w{4,})(?=\w*\d{2}\w*)/; // Change this line
let result = pwRegex.test(sampleWord);
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36
Challenge: Regular Expressions - Positive and Negative Lookahead
Link to the challenge: