Last active
March 7, 2022 13:26
-
-
Save tfaki/b70493e6f9b8b6cba0e3d06598126dc8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* PHONE REGEX REGION */ | |
# PHONE_REGEX_1 = "^((\\(\\d{3}\\))|\\d{3})[- .]?\\d{3}[- .]?\\d{4}$" | |
--> validation: (202) 555-0125 | |
# PHONE_REGEX_2 = "^(\\+\\d{1,2}( )?)?((\\(\\d{3}\\))|\\d{3})[- .]?\\d{3}[- .]?\\d{4}$" | |
--> validation: +90 (202) 555-0125 | |
/* PASSWORD REGEX REGION */ | |
# PASSWORD_REGEX_1 = “^” + | |
“(?=.*[@#$%^&+=])” + // at least 1 special character | |
“(?=\\S+$)” + // no white spaces | |
“.{4,}” + // at least 4 characters | |
“$” |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment