Skip to content

Instantly share code, notes, and snippets.

@andreferi3
Last active May 8, 2020 19:24
Show Gist options
  • Select an option

  • Save andreferi3/5ddd7d0fd4929710bdc6eb25193fb2c2 to your computer and use it in GitHub Desktop.

Select an option

Save andreferi3/5ddd7d0fd4929710bdc6eb25193fb2c2 to your computer and use it in GitHub Desktop.
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