rejex to match first name and last name optional code example Example: find full name regular expression ^[A-Z][-a-zA-Z]+$