Hi Jan,

Historians believe that Tue, 23 Jan 2001 at 11:34:17 GMT -0500 was when,
Jan Rifkinson [JR] typed the following:

Januk>> [...] You can also use regular expressions to get some flexibility too.  For
Januk>> example, I have the following greeting macro so that I get "Hi ..." if
Januk>> you're in my address book, and "Hello ..." if you're not.

Januk>> %SETPATTREGEXP="(?(?=Hi\s;;)Hi\s;;(.*)|(.*);;)"%REGEXPMATCH="Hi
Januk>> %ABtoFIRSTNAME;;Hello %TOFNAME"%SUBPATT="2",

JR>   This is a wonderfully useful RegExp except I came across the
JR>   following, somewhat humorous, situation.

JR>   I was replying to a person who is in my AB who is also a member of an
JR>   eGroups Mail list. The Mail List AB entry has a reply template that
JR>   includes the above regexp. It worked beautifully with a very friendly
JR>   "Hi" greeting to the list name instead of the person.

You can change %ABtoFIRSTNAME to %ABofromHANDLE=""%ABofromFIRSTNAME"",
and it should work.

The problem was that you were looking at the TO address, which is
obviously the list address.  Change it to the OFROM address, and now
you get the original intent.

Remember, when using the %AB macros, the exact form will depend on
which template you're using.

-- 
Thanks for writing,
 Januk Aggarwal

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

 Despite these words, this page is blank.

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

You are subscribed as : [email protected]


Reply via email to