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

Hi Alexander,

On 17 March 2001 at  18:20:58 +0500 (which was 13:20 where I  live)
Alexander Leschinsky wrote to Marck D. Pearlstone and made these
points:

AL>>> 1. Return top-level Domain from TO-field

MDP>> %SETPATTREGEXP=".*@(\w*)."%REGEXPMATCH="%TOADDR"
AL> Marck, sorry, maybe we use different terms for TLD, but - your
AL> regexp returns from your address "silverstones", when I had dream
AL> to get "com" :-), i.e substring after last point in address. Is it
AL> possible?

:-) I wrote to you off list about that when you asked about the
%LANGUAGE macro. Here it is again:

- ----->8-------------------------------------------------------------
Well, that macro returns the first part of the address. To get last
part of the address, you need:

%SETPATTREGEXP=".*@.*\.(\w*)>?$"%REGEXPMATCH="%TOADDR"

But this isn't going to be reliable because of the new domain formats,
like .uk.com and .uk.net.
- ----->8-------------------------------------------------------------

That does what you need.

- --
Cheers -- .\\arck D. Pearlstone -- Moderator TBUDL / TBBETA / TBTECH
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ PGP Key ID: 0x929DCDA0 | www: http://www.silverstones.com      ]
[    Any opinions are my own and not those of RIT labs           ]

TB! v1.52 Beta/1 S/N 14F4B4B2 on Windows NT 5.0 Build 2195 Service Pack 1

-----BEGIN PGP SIGNATURE-----
Version: 6.5.8ckt (build 04)
Comment: PGP Sealed for freshness

iQA/AwUBOrOpMDnkJKuSnc2gEQI9RQCgy2dCxSDg/52N1izwMmhV07SZVQwAn0Cz
C2jMdifSZtqfAAENM58430z1
=0spi
-----END PGP SIGNATURE-----

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

Reply via email to