Hi Peter,

On Sat, 18 Dec 1999 15:56:46 +0100, you wrote:

PS> There are two reasons why this doesn't work:
PS> 1. [ and ] have a special meaning inside regular expression (see in
PS>    the Help under Regular Expressions Syntax (Basic)). You have to
PS>    write \[ and \]

OK, Time for me to read this again :-)

PS> 2. [Palm] is not followed by a colon, therefore you can't put in
PS>    together with Aw: and Re:

Ahh, that is the answer.

PS> Here's the solution

PS> %subject=""%subject="Re: 
%SETPATTREGEXP=""(?i)(((Re|Aw|Antwort):|\[Palm\])\s*)*(.*)""%REGEXPBLINDMATCH=""%OSUBJ""%SUBPATT=""4"""

PS> Note two things:
PS> - "((Re|Aw|Antwort):|\[Palm\])" instead of "(Re|Aw|Antwort):",
PS>   having one more level of parentheses
PS> - %SUBPATT=""4"" instead of %SUBPATT=""3"" because of the additional
PS>   parentheses

PS> You could expand this for more maillists if you replace \[Palm\]
PS> with \[(Palm|Pilot|whatever)\] and incrementing SUBPATT to 5...

Now it work great! Thanks to all people working on this.

IMHO this example must be in the FAQ. It is very useful to add this in
all Answer Templates.

cu,
 Dirk

-- 
Using The Bat! 1.38e under Windows 95 4.0 Build 1111  B



-- 
--------------------------------------------------------------
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]>
--------------------------------------------------------------

Reply via email to