Re: Email splitting...

Baris Sumengen (libwww@hotelspectra.com)
Tue, 19 Oct 1999 17:59:17 -0700


--=====_94038115741=_
Content-Type: text/plain; charset="us-ascii"

You can either use HTML::Parse module to extract links, or the easiest way
is to use a simple regex like:

@emails = $string =~ /<a href="mailto:([^"]+)">/ig;

Baris Sumengen

*********** REPLY SEPARATOR ***********

On 19.10.1999 at 17:27 TurkVista - Cem Kozinoglu wrote:
Hi;
 
I need to split emails from HTML when I get the page with LWP....
Like if I had an HTML page including the code below;
 
Email Me!
 
Are there any special functions to get the emails or split the tags we want
with LWP or any other Module?
I need an Urgent help if avaliable.... thanks for your help...

Best Wishes;
Cem Kozinoglu
< kozin@turkvista.com >
 
 


--=====_94038115741=_
Content-Type: text/html; charset="us-ascii"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
You can either use HTML::Parse module to extract links, or the easiest way is to use a simple regex like:
 
@emails = $string =~ /<a href="mailto:([^"]+)">/ig;
 
Baris Sumengen

*********** REPLY SEPARATOR ***********

On 19.10.1999 at 17:27 TurkVista - Cem Kozinoglu wrote:
Hi;
 
I need to split emails from HTML when I get the page with LWP....
Like if I had an HTML page including the code below;
 
<html>
<body>
<a href="mailto:any@body.com" >Email Me!</a>
</body>
</html>
 
Are there any special functions to get the emails or split the tags we want with LWP or any other Module?
I need an Urgent help if avaliable.... thanks for your help...
 
Best Wishes;
Cem Kozinoglu
< kozin@turkvista.com >
 
 
--=====_94038115741=_--