I have a big file with a large list of emails like:
Some Name <same.name@example.com>
same.name2@example.com
Some Name3 (same.name3@example.com)
Some Name4 (same.name4@example.com)
How can I delete all other text to have only a list like:
same.name@example.com
same.name2@example.com
same.name3@example.com
same.name4@example.com
Thanks
If the file contains the text which are in the above format then you could use the below regex and then replace the matched chars with empty string.
^.*[<(]|[>)].*