Password (UpperCase, LowerCase and Number) pattern : ^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?!.*\s).*$ Password (UpperCase, LowerCase, Number/SpecialChar and min 8 Chars) (?=^.{8,}$)((?=.*\d)|(?=.*\W+))(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*$ Password (UpperCase, LowerCase, Number and min 8 Chars) (?=^.{8,}$)(?=.*\d)(?!.*\W+)(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*$