D
D
den82spb2019-02-01 22:54:52
Notepad++
den82spb, 2019-02-01 22:54:52

How to use search-replace and regular expressions in Notepad++ to remove all duplicate e-mail addresses in a string?

There are lines
site.com: [email protected],[email protected],mail.site.com
nite.com: [email protected],[email protected],[email protected]
After search-replace should remain :
site.com: [email protected],[email protected]
nite.com: [email protected],[email protected]

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
den82spb, 2019-02-01
@den82spb

I play, but I still don't understand what I'm doing. This helped, like
(\b(\[email protected]*.com)\b.*)\2\b
https://regex101.com/r/QNmgpu/4

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question