Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

8
  • 1
    $\begingroup$ Thanks but how this works?! I replace data by res and get 33788 empty lists! $\endgroup$ Commented Nov 17, 2021 at 13:46
  • 1
    $\begingroup$ 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. $\endgroup$ Commented Nov 17, 2021 at 14:43
  • 1
    $\begingroup$ 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? $\endgroup$ Commented Nov 17, 2021 at 14:44
  • 1
    $\begingroup$ @Wisdom I have updated the answer. $\endgroup$ Commented Nov 17, 2021 at 15:21
  • 1
    $\begingroup$ 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. $\endgroup$ Commented Nov 17, 2021 at 15:45