Need name extraction function?
Posted on 2007-11-16
I need some functions that will take a person's full name as a string, and attempt to extract the various piecces of it, i.e.:
GetFirstName(), GetNamePrefix(), GetMiddleName(), GetNameSuffix()
What I would pass in would be something like:
Dr. Alvin Chipmunk Ph.D.
Miss Mary Kate O'Reily
Mr. Alberto Juan De Laurentis
I was hoping that there might be some functions out there already to handle this so I wouldn't have to re-invent the wheel? I'll take code in either C# or VB.NET, or whatever really, as long as it can be converted to .NET of some sort.