email address and phone number recognition

From: Milan (fake_at_email.com)
Date: 04/30/04


Date: Fri, 30 Apr 2004 01:56:04 +0200

Hi all,

I am working on chat application in which users must not be able to send
each other email adresses or phone numbers.

** Any idea on how can I recognize email addresses and phone numbers in a
$string? Has anyone tried to do this?

NOTE: People are sneaky, so they don't use adresses like
"support@microsoft.com", more likely they'll use addresses like "support AT
microsoft DOT com" or even "support (a) microsoft DOT com". The same goes
for phone numbers.

Thanks!