eg. if the Name is: John Deer
the Initials should be: JD
I can use substrings to perform this check on the Initials field, but wondering if I can write a regular expression for it? And is writing a regular expression a better idea than doing it using strings methods?
Personally, I prefer this Regex
That takes care of initials, and whitespace removal (thats the ‘ ?’ at the end there).
The only thing you have to worry about are titles and puctuation like Jr. or Sr., or Mrs….etc etc. Some people do include those in their full names