Split full name to first and last name

This is really a great example of an explanation. You’ll probably have some edge cases like 3 names or more so you’ll need to explore regular expressions I think. Have a look at regex101.com and their library of common regular expressions.

2 Likes