-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Silviu,
On 29 September 2001 at 14:20:23 +0300 (which was 12:20 where I live) Silviu Cojocaru wrote to TBTECH and made these points: SC> I prepared a regexp that would isolate the last part of a domain SC> i.e. .com or .ro etc. SC> (?is)(.*?)@(.*?)(\.(.*?))?(\.(.*?))?\.(.*)? SC> The subpattern that traps the domain type is number 7. Now I hav SC> tried to use the %IF macro according to the help file, but I'm SC> messing up somewhere and this is where I need help. The below is SC> the template: SC> %SETPATTREGEXP="(?is)(.*?)@(.*?)(\.(.*?))?(\.(.*?))?\.(.*)?"%- SC> %REGEXPMATCH="%OFROMADDR"%- SC> IF:'%SubPatt="7"'="ro":%- SC> %Include="C:\Program Files\The Bat!\re-ro.txt":%- SC> %Include="C:\Program Files\The Bat!\re-english.txt" SC> Any ideas ? A couple. IF:'%SETPATTREGEXP="(?is)(.*?)@(.*?)(\.(.*?))?(\.(.*?))?\.(.*)?"%- %REGEXPMATCH="%OFROMADDR"%SubPatt="7"'="ro":%- '%Include="C:\Program Files\The Bat!\re-ro.txt"':%- '%Include="C:\Program Files\The Bat!\re-english.txt"' The %IF macro disrupts the RegExp and so it's best to shift that into the condition (as above). I'm not sure but I think the then/else clauses are supposed to be in quotes so you can try that with or without. - -- Cheers -- .\\arck D. Pearlstone -- List moderator and fellow end user ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ \ BrainStorm - free thinking - www: http://www.brainstormsw.com / \ PGP Key ID: 0x929DCDA0 | www: http://www.silverstones.com / ' SB! v1.54 Beta/9/iKey1000- on Windows NT 5.0.2195 Service Pack 2 ' -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (MingW32) Comment: GPG Sealed for freshness iD8DBQE7tbAoOeQkq5KdzaARAqg2AKC3NS9rsvsq1IbnfOnjGnjDSsj7eACg0oYN RX8lqShnkh8/m1Xb1+MdqPU= =Hiiw -----END PGP SIGNATURE----- -- ______________________________________________________ Archives : http://tbtech.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED]
