From my answer to the question
How to verify a password which contain .......[
^]
(?=^.{8})(?=.*[a-z])(?=.*[A-Z])(?=.*[^\w\d])(?=.*\d).*$
(?=^.{8})
The minimum length
(?=.*[a-z])
Verify atleast one lowercase character
(?=.*[A-Z])
Verify atleast one uppercase character
(?=.*[^\w\d])
Verify atleast one special character
(?=.*\d)
Verify atleast one digit