Hi Januk,

On Thu, 18 Jan 2001 17:22:38 -0800GMT (19/01/2001, 09:22 +0800GMT),
Januk Aggarwal wrote:

JA> Well, the beginning of the line is before "X-Mailer", so when
JA> searching for the beginning of the line, the anchor must come before
JA> the string.  ie "^X-Mailer"

Ah, I'm starting to get into the logic.

TF>> Should be '*.' "Reapeat any character"

JA> You're thinking too much the way humans think.  Think the way shampoo
JA> manufacturers think, "Lather, Rinse, Repeat."

That would be '.*' then.

JA> You're on the right track.  Hopefully this will give you some ideas.

It did:

%SETPATTREGEXP="(?m-s)^X-Mailer\:\s?(.*)"%REGEXPMATCH="%HEADERS"

produces when replying to your message:

The Bat! (v1.49c) Educational

 :-)))))

My first actually working RegEx that was not just c&p'ed, and thanks
to you!

-- 

Cheers,
Thomas.

Co-Moderator der deutschen The Bat! Beginner Liste. Anmeldung unter:
[EMAIL PROTECTED]  

Message reply created with The Bat! 1.49c
under Chinese Windows 98 4.10 Build 1998  
on a Pentium II/350 MHz.



-- 
______________________________________________________
Archives   : <http://tbtech.thebat.dutaint.com>
Moderators : <mailto:[EMAIL PROTECTED]>
Unsubscribe: <mailto:[EMAIL PROTECTED]>

You are subscribed as : [email protected]


Reply via email to