Extracting emails from a file, string or url with php and regex

July 31, 2009

So, sometimes, in life, you have a crazy boss that comes up to you and asks you to do odd things. Like export a folder with a few thousand emails to a csv file. Then extract all the emails from that file. Luckily enough this is possible using php and regex. Below I will show you how I was able to accomplish this.

Read more