breaking a text file into paragraphs based on strings

Posted on 16th Feb 2014 by admin

I have a text file of email addresses that is all squished together. It looks like this:

abcd@gmail.comfefef@mail.comfefefef@yahoo.comfewferf@mail.net...

What I want to do is insert a paragraph after every instance of "com" or "net" etc so I can read it as a list like this:

abcd@gmail.com
fefef@mail.com
fefefef@yahoo.com
fewferf@mail.net


thank

Other forums