Does anyone know how to set a Regular expression rule for a password field ? I've looked over the forum and was surprised that no one came with this yet

Example : Password must be 8 characters long, and should contain 1 uppercase letter, 1 number and exclude special characters....
Maybe it's possible through an HTML element but i don't know how to code it...
Thank you very much for your help
Best,
D