Why non numbrs r checkd in the eg. givn under with D* when we r already checking 3-6 charactr with \w{3,6}. Wouldn't D* inc. pass size by including special char

 simple password checker that looks for between 3 and 6 characters and at least one number:
let password = "abc123";
let checkPass = /(?=\w{3,6})(?=\D*\d)/;

sry i updated question. i’m new. i just want to understand code and why D* is used

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