C
C#2y ago
Foxtrek_64

❔ 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
Angius
Angius2y ago
The only consideration would be people with more names, or non-hyphenated surnames Take Mark Albert Smith Jr.
Foxtrek_64
Foxtrek_64OP2y ago
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 that
Accord
Accord2y ago
Was 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.
Want results from more Discord servers?
Add your server