❔ Name split considerations
I have a name in the form of
First Last
. I need to split this into individual first and last name variables in the least internationally destructive way possible. Any considerations or is String.Split()
enough?3 Replies
The only consideration would be people with more names, or non-hyphenated surnames
Take
Mark Albert Smith Jr.
Fortunately names are always presented without middle names. Titles in our system are considered part of the last name
I have
lastName = fullName.Substring(firstName.Length).Trim()
to account for thatWas this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.