a guest Jan 29th, 2020 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. export const EMAIL_REGEX = /^[a-zA-Z0-9.!#$%&*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/;
  2. export const PASSWORD_REGEX = /^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!.@$%^&*_-]).{8,99}$/;
  3. export const SIX_DIGIT_REGEX = /^\d{6}$/;
  4. export const SINGLE_CHARACTER_REGEX = /.*[a-zA-Z0-9].*/;
  5. export const SINGLE_DIGIT_REGEX = /^\d+$/;
  6. export const VALID_DATE_REGEX = /^(19|20)\d\d([- /.])(0[1-9]|1[012])\2(0[1-9]|[12][0-9]|3[01])$/;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand