Name Validation Regular Expression

A regular expression that matches and validates people’s names (first name, middle name, last name).

/(^[a-zA-Z][a-zA-Z\s]{0,20}[a-zA-Z]$)/

Username Examples:

  • James
  • Kevin Wayne Durant
  • Dirk Nowitzki

See Also: