Reputation: 1973
i want to know if we can remove all the lines in notepad+ that contain specfic letter or word twice in one single line.
for my problem i have a big text file and i want to remove all lines that contain email address twice.. thou the email ID is not the same but i simply just dont want that line, so i thou i can remove all notepad lines that contain @ sign twice... but unforunatly i dont know how to do that. so can anyone please tell me with the regex of this process and if there are any better alternatives please also mention that
thanks
Upvotes: 0
Views: 368
Reputation: 174706
The below regex would match all the lines which has two @
symbols. Just replace the matched strings with an empty string will delete that corresponding line.
^.*?@.*?@.*\n?
Upvotes: 2