Last active
May 8, 2020 19:24
-
-
Save andreferi3/5ddd7d0fd4929710bdc6eb25193fb2c2 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
| let regString = /^[a-zA-Z ]*$/ | |
| let regEmail = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/ | |
| let regPassword = /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d).{6,}$/g | |
| let regNumber = /^[0-9]*$/ | |
| let regPhoneNumber = /^08[0-9]*$/ | |
| let regAddress = /^(?=.*\w).{2,}$/g | |
| let regRt = /^(?=.*\d).{3,3}$/g | |
| let regFractionNumber = /^[0-9]{1,4}([,.][0-9]{1,2})?$/g |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment