Regular Expressions - Positive and Negative Lookahead

Tell us what’s happening:
I can’t run the test, it says this in the console:
ChunkLoadError: Loading chunk 299 failed.
(error: https://www.freecodecamp.org/@babel/standalone-0f5f36e3ccefd6cd402a.js)

Your code so far

let sampleWord = "astronaut";
let pwRegex = /(?=\w{6})(?"\D{2})/; // Change this line
let result = pwRegex.test(sampleWord);

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/112.0

Challenge: Regular Expressions - Positive and Negative Lookahead

Link to the challenge:

Look at the console pane, you should be seeing the following message:

SyntaxError: invalid regexp group

This means you have an error in your regexp pattern.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.