Validating a name using a regular expression

This version uses the following regular expressions to check for a valid name:

/^[a-zA-Z]+$/ for the first name and /^[a-zA-Z]+([\-][a-zA-Z]+)?$/ for the last name
First Name
Last Name