Spent me 3 hours to get a good regex finished for parsing these 3 main possible situations.
Redden, Taylor Captain Hasting Jr.
Redden, Taylor Hasting Jr.
Redden, Taylor Hasting
full, l, f, m1, m2, s = /your_regex_here/.match("Redden, Taylor Captain Hasting Jr.").to_a
I want to see what other possible answers there are beside mine, in as many languages as possible. Bonus points if you can easily get just "Redden, Taylor" or even "Redden, The Greatest Captain etc Redden III"
P.S. I encourage everyone to tweet and tag if possible. Who knows, might be fun. Try and encourage your local community like Ruby Flow for me.
For the record, I'm not trying to promote or spam twitter and ruby flow, just wanna see what comes out of a collected effort.