G�nther,

On Tue, 15 May 2001, at 14:55:51  +0200 you wrote:


>> Unless I am missing something

Guessed so :-)


GE> So both problems have in common that one needs to take the body text,
GE> extract some information (this should not be hard) and put it somewhere
GE> else in the reply (but _not_ in one of the header fields - and this is
GE> maybe a bit complicated).

>> 
>%SETPATTREGEXP="(?m-s)Date\:\s*?((.*?[\d]{4})\s*?([\d]{0,2}\:[\d]{0,2}\:[\d]{0,2})\s*?(.*))
GE>                   ^^^^^^
GE> Can you please tell me what that means?

These are option settings within the regular expression.  If you look
for Internal Option Setting within the help file, you should be able
to get more info.  Briefly, the m means treat the regular expression
as a multiline and the s means treat newlines differently.

>> I don't know why the %TEXT didn't work but the above does for me.  I
>> think that the linefeed comes from the fact that when you edit a
>> template, the editor wraps the text whenever you add/delete text.
>> Always make sure that the line is on a single line.

GE> Yes, this was the case in the formula I've posted. Maybe one needs some
GE> \b, $, \z to set a boundary in the SetPattRegExp?

GE> Thank you for your quick reply and sorry that I didn't express clearly
GE> what I wanted.





Stuart

-- 
Love can turn the cottage into a golden palace.--German Proverb


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

You are subscribed as : [email protected]


Reply via email to