-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello ztrader !
On Tue, 20 Mar 2001 13:02:38 -0800 GMT your local time,
which was 20.03.2001, 22:02 (GMT+0100) where I live, you wrote:
[...]
> I'd like to filter on a subject line. The basic structure is:
> Startword.... stuff in the middle.... Endword
> This structure is sometimes prefixed with another word or
> two as:
> [pre1.. pren] Startword.... stuff in the middle.... Endword
> The 'optional' 1-3 pre words in the beginning are always surrounded by
> square brackets [ ], if they are there.
> What I'd like to do is ignore the brackets,
You mean, you don't need them?
> and any words in the
> brackets, and still be able to filter on Startword and Endword.
> I want to filter ONLY if Startword is the FIRST word and Endword is
> the LAST word of the 'basic structure'. If they are in any other
> positions, or if one is missing, the message is not filtered. The
> positions are important.
> It is actually a bit more complex - Startword and Endword can each be
> any ONE of about 3-4 words.
I guess you know how to use a filter and you only want suggestions for
the regexp to match the subject:
(\[.*?\])*\s*(Startword)(.*?)\s*(Endword)
(\[.*?\])*
^^^^^^^^^^ Brackets with words, but optional Subpatt1
\s*
^^^^^possible whitespaces, but optional
(Startword)
^^^^^^^^^^^ Startword matched in Subpatt2, if you need other words
just type in what is necessary.
(.*?)
^^^^^^ this is "...the text in the middle..." in Subpatt3
\s*
^^^^ possible whitespaces following, but optional
(Endword)
^^^^^^^^^^Endword as "Startword" I assume, nothing follows Endword?!
HTH
- --
Best regards,
Gerd
======================================
Using The Bat! Version 1.51
PGP/GPG-Keys on request mailto:[EMAIL PROTECTED]?subject=send_key
- ----------------------------------------------------------------------------
They say there is divinity in odd numbers.
-----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
iD8DBQE6uEUcTL+wetVsYYcRAu2mAJsHiBhS2Shs9L+yCXNKiGzh6UFuqgCbB5Ai
aoVCElX4Xh7MTKag6Js48n0=
=RTud
-----END PGP SIGNATURE-----
--
______________________________________________________
Archives : <http://tbtech.thebat.dutaint.com>
Moderators : <mailto:[EMAIL PROTECTED]>
Unsubscribe: <mailto:[EMAIL PROTECTED]>
You are subscribed as : [email protected]