Hello Peter,
Saturday, December 18, 1999, 11:16:57 PM, you wrote:
PS> Purpose: strip all kinds of Re:'s and Aw:'s from a subject while
PS> replying.
PS> I have modified the expression above to additionally strip a
PS> trailing " (Decrypted)" as added by TB! when decrypting PGP
PS> messages:
PS> %subject=""%subject="Re:
%SETPATTREGEXP=""(?i)((Re|Aw)\:\s*)*(.*?)(\s\(Decrypted\))?$""%REGEXPBLINDMATCH=""%OSUBJ""%SUBPATT=""3"""
Nice but why not to use lookahead positive assertions?
(?=Re|Aw) instead of (Re|Aw) and so on for Decrypted.
It will save from using additional %SUBPATT= macro,
%REGEXPBLINDMATCH= will be replaced to %REGEXPMATCH.
Shorter, anyway :-)
--
Best regards,
Max mailto:[EMAIL PROTECTED]
--
--------------------------------------------------------------
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]>
--------------------------------------------------------------