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

Problem assigning value to variable in "IF" function
Does this script makes sense? I am trying to take the value that is set to "authenticat" a

Batch Related Pricing
Hi, I need some clarity on the batch related pricing

For example the following are the b

IIS7 and getimagesize() problem
I have just discovered after hrs of trying to fix a problem where it's coming from. It's to do with

echo $rows help
Hi all,

Hopefully something simple that I don't know!

I have this:

Code: [Selec

Need help making a blockquote and line items conditional
I have some code I bought a few years ago that allows my clients to update content on their site usi

Strip Slashes Help
I've got a script that i've downloaded of the net to edit multiple fields from my sql database, and

Best way to read this text file.
Hi.I am planning to make a small application in C# to convert the players from Football manager 2010

help, header() is not working!
Hello, I have this code:


<?php

/**
* @author samoi
* @copyright 200

login form can you find my error?
registrationform.php seems fine send data to registration.php
registration.php seems fine checks

Best way to cross matching large datasets
Hi,

Im running a script where am I cross matching about 200 000 data sets with each other. Ea

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