ciao a tutti,
la mia necessità è quella di estrarre un'indirizzo email del "FROM:" dall'header di un file EML.
è possibile estrarre yyy@yyy.yy con un pattern particolare?codice:From: "YYY YYY" <yyy@yyy.yy> To: <xxxx@xxx.xxx> Subject: prova Date: Wed, 7 Feb 2007 14:40:26 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_01E1_01C74AC5.E85907B0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
con
riesco ad estrarre "yyy yyy" <yyy@yyy.yycodice:set re = server.CreateObject("VBScript.RegExp") re.Pattern = "from: ([^\v]*?)>" set ris = re.Execute(lcase(text("prova2.eml",false))) if ris.count>0 then Response.Write ris(0).SubMatches(0) end if
ma io devo estrarre solo yyy@yyy.yy
come procedo?

Rispondi quotando
