I have a field in Forms that a user types in the Last Name, First Name Middle Initial.
My current Regular Expression is (\w+,)\s(\w+)\s(.)
There are instances where the employee has a hyphenated last name or no middle name.
For example, Smith-Lock, Joe T or Smith, Joe
I'm looking for an expression that would handle all four data entries below:
Smith, Joe T or Smith-Lock, Joe T or Smith-Lock, Joe or Smith, Joe
Thanks for any ideas!
Pete