-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

  What I'm trying to do is the following:

 If someone with the an address like
 [EMAIL PROTECTED] e-mails me when I hit reply a
 template in a file gets included and so I have a
 personalized reply for romanian users, else it
 uses the basic english template which I also save
 in a file

 I prepared a regexp that would isolate the last
 part of a domain i.e. .com or .ro etc.

 (?is)(.*?)@(.*?)(\.(.*?))?(\.(.*?))?\.(.*)?

 The subpattern that traps the domain type is
 number 7. Now I hav tried to use the %IF macro
 according to the help file, but I'm messing up
 somewhere and this is where I need help. The
 below is the template:

%SETPATTREGEXP="(?is)(.*?)@(.*?)(\.(.*?))?(\.(.*?))?\.(.*)?"%-
%REGEXPMATCH="%OFROMADDR"%-
IF:'%SubPatt="7"'="ro":%-
%Include="C:\Program Files\The Bat!\re-ro.txt":%-
%Include="C:\Program Files\The Bat!\re-english.txt"

Any ideas ?

- --
A more experienced programmer does not make less bugs.
He just realizes what went wrong more quickly.
__________________________________________________________________
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (MingW32)
Comment: Member of the PGP-Basics, Encryption Help Team

iD8DBQE7ta558WBGNj3ut+0RAoFaAKDNRUwr76Q6M/AB+9raFtJehg+R4gCgsCyi
7gPNoCnOB70FxJUPaAJhZVw=
=s5OI
-----END PGP SIGNATURE-----


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

Reply via email to