1r'^
2 (?=.*[A-Z]) // should contain at least one upper case
3 (?=.*[a-z]) // should contain at least one lower case
4 (?=.*?[0-9]) // should contain at least one digit
5 (?=.*?[!@#\$&*~]) // should contain at least one Special character
6 .{8,} // Must be at least 8 characters in length
7$
8