what do you mean?may be this is not what you want.
<?php
error_reporting(E_ALL);
set_time_limit(0);
$content = file_get_contents('file.txt');
$pattern = "/[a-z0-9_\-\+]+@[a-z0-9\-]+\.([a-z]{2,3})(?:\.[a-z]{2})?/i";
preg_match_all($pattern,$content,$emails);
$emails = @implode(',',$emails[0]);
header('Content-type: text/csv');
header('Content-Disposition: attachment; filename="emails_export_'.strtotime("now").'.csv"');
echo $emails;
how do I open the .php file? no programs are working :SDo you just need the email address and not anything else? A bit of php can do it for you.
Save the following code as a php file and run it directly. your file's name should be file.txt and it should be at the same folder where your php file is, if you don't make any changes to the script.
set_time_limit(0) prevents script timeout. So it should work for a very large file too. Just wait patiently till the script does it's job.
Code:<?php
Trying them now. They need to review the list, but there are "passwords" for accounts, so they might decline the list.I think mailchimp helo filter emails free of charge.
My goodness, don't you have a server or something?how do I open the .php file? no programs are working :S
isnt it possible without a sever?My goodness, don't you have a server or something?
You can do it on your local machine too. Download Wamp server and set it up and then follow this tutorial:
isnt it possible without a sever?
haha xD new to all this kind of stuff..
Hey, just got my hands on 100k emails from facebook users, but in the list there are different information that only the email.
How can I filter it, so I ONLY have the emails?
Notepad++ replace option can do the trick. )? what rlly