Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Text
Posted by: Richard WebStorm
Added: Sep 15, 2020 1:41 AM
Modified: Oct 8, 2021 10:55 PM
Views: 4244
Tags: no tags
  1. Email: pattern="[^@\s]+@[^@\s]+\.[^@\s]+"
  2. Password: pattern="^(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z])(?=\S+$).{6,}$"
  3. Any Name field: pattern="^[\w'\-,.][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*(){}|~<>;:[\]]{2,}$"
  4. Phone Number: pattern="^[0-9-+\s()]*$" minlength="6" maxlength="20"
  5. Credit card date: pattern="(?:0[1-9]|1[0-2])/[0-9]{2}"
  6.  
  7. Business names withminimal special characters such as - / |
  8. pattern="^[\w'\-,.][^_!¡?÷?¿\\+=@#$%ˆ&*(){}|~<>;:[\]]{0,}$"
  9.  
  10. Letters numbers and hyphen only: pattern="^[\w'\-,.][^_!/¡?÷?¿\\+=@#$%ˆ&*(){}|~<>;:[\]]{0,}$"
  11.  
  12. Url address: pattern="^[\w'\-,.][^_!¡?÷?¿\\+=@#$%ˆ&*(){}|~<>;[\]]{0,}$"