Can someone give me the regex to match a valid AWS Cognito password - with numbers, special characters (their list), lower and upper case letters
The AWS Cognito default length limit is 6 characters and has it's own list of special characters
Can someone give me the regex to match a valid AWS Cognito password - with numbers, special characters (their list), lower and upper case letters
The AWS Cognito default length limit is 6 characters and has it's own list of special characters
/^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[\^$*.\[\]{}\(\)?\-\"!@#%&\/,><\':;|_~`])\S{8,99}$/
/ Indicates the start of a regular expression^ Beginning. Matches the beginning of the string.(?=.*[a-z]) Requires lowercase letters(?=.*[A-Z]) Requires uppercase letters(?=.*[0-9]) Requires numbers(?=.*[\^$*.\[\]{}\(\)?\-"!@#%&\/,><\’:;|_~`]) Requires special characters (only the special characters listed by AWS Cognito).\S Whitespace (space, tab, carriage return) not allowed{8,99} Minimum 8 characters, maximum 99 characters$ End. Matches the end of the string./ Close.