Greetings
I am trying to separate first and last names into two columns. The list of names currently has the following format and variations. Can this be done with one Regex tool? Regardless, is there a relatively straightforward way to accomplish this?
Washington, Jr., William B.
Billington, Stephanie
D'esky, Don A.
Smith, Sr., Sara
Thanks for your time!
Solved! Go to Solution.
Using the Regex Parsing tool, I set the Regular Expression to:
(.*),(.*)
Set the Output method to Parse.
You can rename the out1 and out2 fields to Last Name and First Name.
Cheers,
Mark
Alternatively to the prior comment, you could use the text to columns tool, simply set it to two columns and put , as the delimiter.
@nalefe - having multiple commas is the tricky piece here. You want it to always split on the last comma; this piece of regex should do that:
(.+),(.[^,]+)
Al three solutions seem to work. Thanks!