Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Objective

Expression

Only enter numeric characters 0-9 with a maximum limit of six characters

^[0-9]{1,6}$

Alphanumeric string, upper and lowercase characters, with a minimum limit of 10 and a maximum limit of 20

^([a-zA-Z0-9_-]){10,20}$

10-digit phone number with hyphens

^\d{3}-\d{3}-\d{4}$

...