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

Friday, October 12, 2001 at 5:27:06 PM ,
Peter Palmreuther wrote about "A rather simple macro needed.":

> I'm not yet really familiar with RegExp within TB! (it's to far from
> Perl-Style for me with it's %REGEXPBLINDMATH etc.)

Well actually, you could just post the "raw" regexp Peter. TB!'s
implementation does not differ from Perl in such a great way,
actually I have a pdf, from where I learnt regexping and there's
a lot of perl in there.

In my view, a simple regex won't solve this... we need something
to pass all the addresses through a simpler regexp(like:
(.*)@\bdomain\b.com ) and see if it matched. This is where some
scripting would be handy: go through the %OTOLIST, and if one
address matched the regexp then put it in a string type variable, or
a hash of strings, then use that in the final template:

Pascal(may be rusty :) ):

counter=1;
while(string[counter])
begin
write(string[counter]);
counter:=counter+1;
end;

or C:

counter=0;
while(string[counter])
{
printf("%s",string[counter]);
counter++;
}

Hah, I'm a dreamer ;)

- --
Error reading disk!
A)bort, R)etry, I)nfluence with large hammer ?:
______________________________________________________
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (MingW32)
Comment: Member of the PGP-Basics, Encryption Help Team

iD8DBQE7xw6x8WBGNj3ut+0RAs9uAJ42rIeR0affMRA2VsH9J452ljx/5ACghlHb
wKvyicEiGfTdXzF2AmFVuls=
=vTy6
-----END PGP SIGNATURE-----


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

Reply via email to