I have a list of person names which can have 3 different styles:
{last name}, {first name} {middle name}
(Example: Bob, Dylan Tina){last name}, {first name} {middle initial}.
(Example: Bob, Dylan T.){last name}, {first name}
(Example: Bob, Dylan)
And this is the regex which I wrote:
^[a-zA-Z]+(([' ,.-][a-zA-Z ])?[a-zA-Z]*)*$
But it doesn't work.