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

Hello Marck D. Pearlstone !

 
On Fri, 9 Mar 2001 23:42:07 +0000 GMT your local time,
which was 10.03.2001, 00:42 (GMT+0100) where I live, you wrote:

[...]

Yes Marck, you are right. I did post a test pattern and not the proper
answer to the question. I corrected my reply this morning but
obviously it didn't arrive yet (at least it didn't here).

> 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'"

Question: is the (.*) not too greedy, so that it could match the very
last \n in the text and not that one just behind the email-adress? (I
just started to read about greedy and non-greedy patterns<g> Please
CMIIW).


May I suggest an improvement to make sure that an email adress will be
matched:

(?i)^Email:\s?(\S+@\S+\.\S+)\

This would ignore case; there maybe one or no whitespace behind
"Email:"; the text behind the whitespace has to look like an email
address (more or less:-)).

Is that a possible way??

- -- 
Best regards,
 Gerd 
======================================
Using The Bat! Version 1.51
PGP-Keys on request mailto:[EMAIL PROTECTED]?subject=send_key
- ----------------------------------------------------------------------------
I am not afraid of tomorrow, for I have seen yesterday and I love today.
     William Allen White, American journalist (1868-1944)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4-1 (MingW32) - GnuPGshell v1.60
Comment: Digitally signed! So you know it's me!! Key_ID 0xD56C6187

iD8DBQE6qeZxTL+wetVsYYcRAkd7AKD0c7j6XsFlkQuY4mk8LxDleB/wAwCgjbV7
NNRCXQiciAzBt0FTyIV/PrY=
=XK4N
-----END PGP SIGNATURE-----



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

You are subscribed as : [email protected]


Reply via email to