breaking a text file into paragraphs based on strings


Posted on 16th Feb 2014 07:03 pm 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

No comments posted yet

Your Answer:

Login to answer
56 Like 28 Dislike
Previous forums Next forums
Other forums

am I using this for loop correctly
Dear buddies!

Right now I am generating a report with some details for all the dealers.

Putting double spaces instead of single spaces
Im looking at trying to replace all single spacing between fields with double spacing

At pres

Strange Oracle Query problem
Ok So I have this PHP class that talks to a Javascript class that basically creates a table of infor

Email Form Syntax Issue
I need the TO: in email to display To: CEO instead of To: abc@mail.com

How to alter the scri

PHP Session Issue
I'm having an issue with one section on my website dealing with sessions. Now I know that myself and

What makes a script your own?
If someone finds a login script online, and changes some variable names around and some other minor

Delete HTML file after loading
I have limited experience with php and its been a year or two since I've last used it. I have a sma

Help with search.php
Hello All

I need the search engine on a site I am building at the moment to display the searc

animation progress while uploading files?
Hello, i have some website form to upload few files to server. i want to put some gif animation whi

User registration and login
I don't know whether this is the correct forum, if not i apologise but am pretty desperate at the mo

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash