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...

Did you know?Explore Trending and Topic pages for more stories like this.
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

path to include folder
Hi everyone,

When I'm testing locally, I have to add the name of the site folder as part of t

Trying to add functions to table
I have this list of characters and I'm trying to figure out what I have to do to put the results of

RTF fomatting to email content
Im trying to sen an email with content is picked up from a rtf-file (file_get_contents('*.rtf'). Mai

Help with some dates
I have a list of dates in an array:

$mondays = array(
strtotime("October 12, 2009

CRM?
I think that's what they're called. Customer Management System? Anyway. Is there any good free ones

Header redirect
Hello ive got a problem ive got form with its action set to itself.
Code: <form id="f

Does design fit in FPGA ?
Hi all,

I've made a large HCC-Design. Because of the program-size the compile process with th

Weekly Calendar
Hi, I am looking at creating a weekly calendar. The calendar will read from Monday - Sunday. Does an

Get to know your fellow coder
I think it's time we got personal around here. There's a lot of code swapping and a few members kno

making web pages for accounts
Hello, I would like to make pages for accounts on my website im making (its not a real website..im j

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