Text manipulation using regular expressions

Example

Enter a list of names with first name first, a space, and then a last name.

Code