Hello Thomas,

TF = Thomas Fernandez 

On  Thu, 11 Jan 2001  at  16:15:24 GMT +0800 (which was 12:15 AM where
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. ;-)


 I already did this one some time ago.  If I remember correctly, the
 best one was:

%TO=''%TO='%SETPATTREGEXP="(?is).*?[^-_.\w]*?([-_.\w]{2,}?@[-_.\w]{3,}?)[^-_.\w]"%REGEXPBLINDMATCH="%TEXT"%SUBPATT="1"'

It finds the first e-mail address in any message.

-- 
Thanks for writing,
 Januk Aggarwal

 Using The Bat! 1.49
 under Windows 98 4.10 Build 2222  A 

-- 
--------------------------------------------------------------
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


Reply via email to