I’ve got a project where I have to get email addresses and have realised that using the Matches activity in a For Each loop will probably be best
Here are example email addresses that cover all permutations
The reg-ex I have written covers all but the last one with the hyphens in
^([A-Za-z.\d].?[A-Za-z])(@[A-Za-z].[A-Za-z].?[A-Za-z]*)$ (this doesn’t look like Ui Path is showing this right so have included a screenshot)
The thinking being I’ve used ‘A-Z’ instead of \w to stop email addresses being picked up where somebody has put in incorrect symbols
Please can somebody see if they can alter the above so the last email address with the hyphens in is picked up? When I have added a ‘-’ to the first character set, this hasn’t worked.