Hi Thomas,
Historians believe that on Fri, 19 Jan 2001 at 17:25:02 GMT +0800,
Thomas [TF] typed:
JA>> You're on the right track. Hopefully this will give you some ideas.
TF> It did:
TF> %SETPATTREGEXP="(?m-s)^X-Mailer\:\s?(.*)"%REGEXPMATCH="%HEADERS"
Excellent.
Note that I would recommend adding the ignore case option so that
headers such as:
X-mailer:
are also caught.
Also note that if you want to *always* get something, even
if there is no X-Mailer header in the original message, you can change
the expression to:
%SETPATTREGEXP="(?im-s)^X-Mailer\:\s?(.*)"%REGEXPMATCH="%HEADERS
X-Mailer: Unknown"
This really should be on two lines with the newline between %HEADERS
and "X-Mailer:..."
TF> My first actually working RegEx that was not just c&p'ed, and thanks
TF> to you!
Congratulations. I hope you find them as intriguing as I do. :)
--
Thanks for writing,
Januk Aggarwal
Using The Bat! 1.49c under Windows 98 4.10 Build 2222 A
Ok, who is General Relativity, and what did he do with Sir Newton?
--
______________________________________________________
Archives : <http://tbtech.thebat.dutaint.com>
Moderators : <mailto:[EMAIL PROTECTED]>
Unsubscribe: <mailto:[EMAIL PROTECTED]>
You are subscribed as : [email protected]