For the following question:
" Use lookaheads in the pwRegex to match passwords that are greater than 5 characters long, and have two consecutive digits."
Why did my code /(?=\w{6,})(?=\d{2})/ not work.
But /(?=\w{6,})(?=\w*\d{2})/ does work…
I don’t understand why the \w* makes a difference???