"Last Name, FirstName Middle Name".match /^(?<last_name>\p{Alpha}+)[,\s]+(?<first_name>\p{Alpha}+)(?: *)(?<middle_name>.+)?$/
Created
November 6, 2019 19:11
-
-
Save andreyuhai/19bc7d57f4826abf114caaf631b57dd9 to your computer and use it in GitHub Desktop.
Regexp matching <last_name>, <first_name> <middle_name>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment