-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Gerd,
On 09 March 2001 at 00:05:00 +0100 (which was 23:05 where I live)
Gerd Ewald wrote to syv at TBUDL and made these points:
>> I receive an email with this in the body:
>> Email: [EMAIL PROTECTED]
>> It is on Line 6 - Char 1
>> I need to send a automatic reply to [EMAIL PROTECTED]
>> Can somebody point me in the correct direction?
GE> With the Regexp it always has to be in line 6. Whenever this changes,
GE> you have to change the number in {} appropriatly.
GE> <one long line>
GE>
%TO=""%To="%SETPATTREGEXP=""(?is)(^.*?){5}([EMAIL PROTECTED])""%REGEXPBLINDMATCH=""%text""%SUBPATT=""2"""
GE> </one long line>
GE> I tested it with some test text without errors. But as I'm a
GE> beginner in Regexp I will not guarantee for nothing :-)
%TO=""%To="%SETPATTREGEXP='(.*\n){5}^Email:\s(.*)\n'%REGEXPBLINDMATCH='%text'%SUBPATT='2'"
Is a bit more like it since the object of the exercise is to retrieve
a variable email address.
Although, more reliable is this one:
%TO=""%To="%SETPATTREGEXP='^Email:\s(.*)\n'%REGEXPBLINDMATCH='%text'%SUBPATT='1'"
But it relies on the "Email: xxx" line being the first such line in
the text (rather than specifically on the sixth line).
- --
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/AwUBOqlqXznkJKuSnc2gEQJpYQCdGv7aEDy2rZSjNW30X19DIxPYxCcAmgK2
uXdilrZOWNTT7Lz3Novc5Yep
=BHJt
-----END PGP SIGNATURE-----
--
______________________________________________________
Archives : <http://tbtech.thebat.dutaint.com>
Moderators : <mailto:[EMAIL PROTECTED]>
Unsubscribe: <mailto:[EMAIL PROTECTED]>
You are subscribed as : [email protected]