Hello everybody,
I have a spreadsheet with manually typed email addresses and email addresses copied from Outlook. I have encountered these situations below, but I am sure there are more. I want to either clean the email as much as possible or create a flag for someone to review the email when Alteryx cannot definitely decide the outcome, e.g., if an email comes in as john doe@xyz.com, I want this email to be flagged..
| Situation | Email before cleanup | Expected Out put |
| Name1 <email1>;Name2 <email2>; | John1 Doe <john.doe1@xyz.com>;John2 Doe <john2.doe@xyz.com> | john.doe1@xyz.com;john2.doe@xyz.com |
| Name1 <email1>;email2 | John1 Doe <john.doe1@xyz.com>;john2.doe@xyz.com | john.doe1@xyz.com;john2.doe@xyz.com |
| Space in the email address | John1 Doe@xyz.com; John2.doe @XYZ.com | Email review Required |
| Space in the email address | John Doe@xyz.com | Email review Required |
| Space in the email address | John.doe@xyz. com | John.Doe@xyz.com |
| Space in the email address | John.doe@xyz .com | Email review Required |
I am new to Regex and have made an attempt to use it for cleaning the email addresses. However, I have not been very successful 🙄. Please see my attached attempt for your reference.
Any help is appreciated. Feel free to throw away my workflow and suggest something completely different.
Note: I kept each formula tool separate to see the result of each formula.