Hi Marck,
Historians believe that Tue, 26 Jun 2001 at 21:15 GMT +0100 was when,
Marck D Pearlstone [MP] typed the following:
MP> %SETPATTREGEXP="^.*X\-Mailer\:\s(.*?)\n.*"%REGEXPBLINDMATCH="%HEADERS"%SUBPATT="1"
MP> You only need to define the single sub-pattern - that in which you
MP> are interested - and the \n should be *outside* of that pattern.
I guess this is a good time to note a couple of things.
1. If you have the macro combination:
%REGEXPBLINDMATCH="..."%SUBPATT="1"
You can use the macro:
%REGEXPMATCH="..."
2. If you have the macro combination:
%SETPATTREGEXP="(regexp)"%REGEXPMATCH="%TEXT"
Or:
%SETPATTREGEXP="(regexp)"%REGEXPBLINDMATCH="%TEXT"%SUBPATT="1"
You can use:
%REGEXPTEXT="(regexp)"
3. You can now use the %- macro to make the regexp macros somewhat
more readable. %- at the end of a line will suppress the line
break. In other words:
%SETPATTREGEXP="(regexp)"%REGEXPBLINDMATCH="%TEXT"%SUBPATT="1"
is equivalent to:
%SETPATTREGEXP="(regexp)"%-
%REGEXPBLINDMATCH="%TEXT"%-
%SUBPATT="1"
--
Thanks for writing,
Januk Aggarwal
Using The Bat! 1.53bis under Windows 98 4.10 Build 2222 A
Despite these words, this page is blank.
--
______________________________________________________
Archives : <http://tbtech.thebat.dutaint.com>
Moderators : <mailto:[EMAIL PROTECTED]>
Unsubscribe: <mailto:[EMAIL PROTECTED]>