Hi,
I'm trying to extract emails from old backup files of a custom built email client. They are saved as html files and the code is a total mess. At least the email addresses are contained within regularly occuring <td> tags. I tried this simple preg_match script but it ends up saying:
Warning: preg_match() [function.preg-match]: Unknown modifier 't' in /home/whatever/public_html/scripts/parser/index.php on line 4
NULL This is the script. The (.+?) bit is meant to represent the email address :)
<?php
$data = file_get_contents('http://www.whatever.com/scripts/parser/backup1.php');
$regex = '/Email Address:</td><td class="email">(.+?)</td>/';
preg_match($regex,$data,$match);
var_dump($match);
echo $match[1];
?>
Any ideas please?