The string contains a name, where the first part corresponds to the name and the second to the lastname.
The regular expression must verify these formats:
"Surname1 Surname2, Name1 Name2"
"Surname1, Name1 Name2 Surname2"
Invalid strings:
"Surname1 Surname2 Name1 Name2"
"Surname1, Surname2, Name1 Name2"
"Surname1 Surname2 Name1 Name2,"
I try the following: /([\w][\,][\s]{1}\b)/
, but did not work
I appreciate any help.