Regex Lookahead issue

The curriculum instructs to look for 2 consecutive digits. The solution checks to see 2 consecutive digits AT THE END of the match.

I do not think that is true.


let sampleWord = "astr1on11aut";
let result = pwRegex.test(sampleWord);

You are correct. I should have tried an example as you did. However, I do suggest to the powers that be to rewrite the solution text as it specifically states β€œat the end of the string.”

Ah, I see what you mean there.

The guide solutions often drift out of sync with the challenges since they require manual updates.