Skip to content

Latest commit

 

History

History
11 lines (9 loc) · 302 Bytes

regex.md

File metadata and controls

11 lines (9 loc) · 302 Bytes

// useful regular expressions

useful regular expressions

email

let emailPattern = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+.[a-zA-Z]{2,}$/;

password

let passwordLength = /^[a-zA-Z0-9._%+-]{8,}$/ let passwordUppercase = /[A-Z]+/ let passwordLowercase = /[a-z]+/ let passwordNumeric = /[0-9]+/