Hello Januk,
Thursday, January 11, 2001, 9:31:23 AM, you wrote:
JA> Hello Thomas,
JA> TF = Thomas Fernandez
JA> On Thu, 11 Jan 2001 at 16:15:24 GMT +0800 (which was 12:15 AM where
JA> I live) witnesses say Thomas Fernandez typed:
TF>> Hi Emmanuele,
TF>> On Thu, 11 Jan 2001 09:03:41 +0100GMT (11/01/2001, 16:03 +0800GMT),
TF>> Emmanuele Vigni wrote:
EV>>> There is also unwanted text in them, but only one email to capture..
TF>> Let me play a bit here. I'm really not good at RegEx, but I'll give it
TF>> a shot:
TF>> %RegExpMatch="%Text" // The body of the message is our source
TF>> Match algorithm:
TF>> 1.) Find "@" character
TF>> 2.) Return the string consisting of all characters between the space
TF>> preceding this character and the space or <cr> following this character.
TF>> Give me a little time (couple of days should do) to put this into a
TF>> RegEx script. ;-)
JA> I already did this one some time ago. If I remember correctly, the
JA> best one was:
JA>
%TO=''%TO='%SETPATTREGEXP="(?is).*?[^-_.\w]*?([-_.\w]{2,}?@[-_.\w]{3,}?)[^-_.\w]"%REGEXPBLINDMATCH="%TEXT"%SUBPATT="1"'
JA> It finds the first e-mail address in any message.
Ok, tnx. But where I have to put that code in The Bat??? I am new...
--
Emmanuele
--
--------------------------------------------------------------
View the TBUDL archive at http://tbudl.thebat.dutaint.com
To send a message to the list moderation team double click here:
<mailto:[EMAIL PROTECTED]>
To Unsubscribe from TBUDL, double click here and send the message:
<mailto:[EMAIL PROTECTED]>
--------------------------------------------------------------
You are subscribed as : archive@jab.org