we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
showing results for - "react yup password with number string and uppercase"
Erica
14 May 2020
1password: yup
2    .string()
3    .required('Please Enter your password')
4    .matches(
5      /^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*#?&])[A-Za-z\d@$!%*#?&]{8,}$/,
6      "Must Contain 8 Characters, One Uppercase, One Lowercase, One Number and one special case Character"
7    ),