Timeline for How to extract email addresses from a text file using Mathematica
Current License: CC BY-SA 4.0
12 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Nov 17, 2021 at 18:46 | comment | added | Wisdom | OMG! such a simple way! Thanks a lot. and feel free to edit everything. | |
| Nov 17, 2021 at 15:45 | comment | added | Syed | list3 = TextCases[data, "EmailAddress"] // DeleteDuplicates; is also a built-in way of doing all this in Mma, but I will let you explore this further and see the differences yourself. I took the liberty of editing the title/post twice. If you don't like the changes, you can revert them. See you later. | |
| Nov 17, 2021 at 15:38 | comment | added | Wisdom | Now your pattern became perfect. Great job! | |
| Nov 17, 2021 at 15:21 | comment | added | Syed | @Wisdom I have updated the answer. | |
| Nov 17, 2021 at 15:20 | history | edited | Syed | CC BY-SA 4.0 | improved answer and added comparison |
| Nov 17, 2021 at 14:48 | comment | added | Wisdom | I didn't compare, but your pattern gives 428 results while the first one gives 652 after DeleteDuplicate command. I know the 652 is close to correct results. | |
| Nov 17, 2021 at 14:44 | comment | added | Syed | For learning about these reserved words, you can press F1 and try examples in the docs. Experiment with your own file step by step. Please let me know, which emails this pattern left out? | |
| Nov 17, 2021 at 14:43 | comment | added | Wisdom | Many Thanks, your pattern is very clean, but it doesn't give all emails. Anyway I will be so grateful if you add some explanations to your pattern for clarification. | |
| Nov 17, 2021 at 14:38 | vote | accept | Wisdom | ||
| Nov 17, 2021 at 14:04 | history | edited | Syed | CC BY-SA 4.0 | added Mathematica's way of doing it |
| Nov 17, 2021 at 13:46 | comment | added | Wisdom | Thanks but how this works?! I replace data by res and get 33788 empty lists! | |
| Nov 17, 2021 at 13:12 | history | answered | Syed | CC BY-SA 4.0 |