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

Hi there,

I am a new TB user and am trying to get to grips with the powerful
REGEXP within templates.

I subscribe to a mailing list which always ends it mailings with a
non-standard signature.  The format of this is as below:

- -=-=-=-
[ SOME TEXT ]
[ SOME MORE TEXT ]

I though that it would have been a relatively easy thing to set up
but am getting nowhere.  I was thinking that the logic for the regexp
would be:

1) Take all the text of the message
2) Set everything up to the -=-=-=- as %SUBPATT0
3) Set (-=-=-=-\n\[.*\]\n\[.*\]\n) as %SUBPATT1

You could then set %QUOTES to the output of %SUBPATT0.  This is what
I came up with:

<one Line>
%QUOTES="%SETPATTREGEXP=""(?is)((.*\n)*)(-=-=-=-\n\[.*\]\n\[.*\]\n)""%
REGEXPBLINDMATCH=""%TEXT""%SUBPATT=""0"""
</one line>

This, however, gives me two copies of the text both with the
footer/signature in it !  I am sure that I am missing something
extremely obvious but I just can't see it.

Any help is very much appreciated.

Stuart

- --
No wanna work... wanna bang on keyboard!

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5i
Comment: Digitally signed for sender verification.

iQA/AwUBOkJAKnjB/5h2FIaGEQJXVwCgiOkfgMWnHQrByBoutUfNCXdYnbUAn3RA
35svbZHZTl4jDbP7/rCJwCnl
=hzHU
-----END PGP SIGNATURE-----

-- 
--------------------------------------------------------------
View the TBUDL archive at http://tbudl.thebat.dutaint.com
To send a message to the list moderation team double click here:
   <mailto:[EMAIL PROTECTED]>
To Unsubscribe from TBUDL, double click here and send the message:
   <mailto:[EMAIL PROTECTED]>
--------------------------------------------------------------

You are subscribed as : [email protected]


Reply via email to