Hello Urke,
Historians believe that Wed, 18 Jul 2001 at 10:04 GMT +0200 was when,
Urke [U] typed the following:
U>
%IF:"%OFROMADDR"="[EMAIL PROTECTED]":"%QUOTES='%REGEXPTEXT=""^.*some\sintro\stext:.\n(.*)""'":%-
U>
"%IF:""%OFROMADDR""=""[EMAIL PROTECTED]"":""%QUOTES='%REGEXPTEXT="""^.*some\sintro\stext:.\n(.*)"""'""":%-
U> "%QUOTES"
U> But, I think this not work correct. Problem is in quotation marks. How
U> to set them, because IF macro need part for inserting to put into
U> quotation marks.
You've made a mistake in the syntax, it should be:
%IF:"string1"="string2"%-
:"regexp1"%-
:"%IF:""string3""=""string4""%-
:""regexp2""%-
:""else string"""
That means, your example becomes:
%IF:"%OFROMADDR"="[EMAIL PROTECTED]":%-
"%QUOTES='%REGEXPTEXT=""^.*some\sintro\stext:.\n(.*)""'":%-
"%IF:""%OFROMADDR""=""[EMAIL PROTECTED]"":%-
""%QUOTES='%REGEXPTEXT="""^.*some\sintro\stext:.\n(.*)"""'"":%-
""%QUOTES"""
Notice, the last %QUOTES must be in the Else portion of the *second*
%IF macro. This is because you already used the Else portion of the
first %IF macro. Clear as mud?
--
Thanks for writing,
Januk Aggarwal
Using The Bat! 1.53l 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]>