Hi, I have a similar issue
Displayname is Lastname, Firstname (XX)
Need to parse out the email address - Firstname.Lastname@domain.com
Got most of it working from the posts here but now need to parse out firstname without the (XX) (note that XX is a two character country code)