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

unexpected T_VARIABLE error
Hey all! I'm getting an unexpected T_VARIABLE with the following function:

function getHighes

need help modifying script
Hi guys,

I'm fairly new to php and am having a bit of trouble modifying a script.

This

Passing Variables
What I'm wanting to do is when the user clicks on Arenas it will know the name of the country it's w

Grids not displaying decimals, and behaving differently on different PCs?
Hello,

I coded a relatively simple MII application that allows data from a form to be add

empty() error
Why does

Code: empty($USER_ID = $_SESSION["USER_ID"])
create this error...

help with this code please?
Hello,

I am trying to build a remote upload script for my image hosting site.

I am usi

Not adding to db
Hi, I can't figure out why it won't add the record to the database. It's just a simple form to get

Form Help
Here is the form:

Line number On/Off | Expand/Contract<? include("../include/sess

Staff Induction System - No idea where to go from here!!!
Hi there, I'm pretty new to PHP and Mysql so could really do with being pointed in the right directi

undefined offset help
Hi All,

I kept getting undefined offset PHP notice for a simple for loop. For eg
$va = arr

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