regex for last name and initials regex demo code example Example: find full name regular expression ^[A-Z][-a-zA-Z]+$