Hi there,
I use:
$matches = preg_match_all("/([a-z0-9]|\-|\.)+@(([a-z0-9]|\-)+\.)+[a-z]{2,4}/",$contents,$result);
to strip all e-mail addresses out of an html file.
It works fine, except for one thing. The output from such a query, produces the following:
email1@email.com
email2@email.com
h
s
h
co.
Great that it gets the addresses... not so great that it matches those other things. Anyone have any ideas?
Thanks
Rob