---"Frank J. Perricone" <[EMAIL PROTECTED]> wrote:

> My list's prefix is [Crossword] so I have this in my rcfile:
> 
> <SUBJECTSTRIPCODE>
> s/^\[Crossword\]\s*//;
> </SUBJECTSTRIPCODE>
> 
> This works for a message like
> 
> [Crossword] Turn #51a
> 
> but fails on
> 
> Re: [Crossword] Turn #51a

How about something like:

<SubjectStripCode>
s/^(Re:\s*)?\[Crossword\]\s*/$1/;
</SubjectStripCode>

You can copy from the SUBJECREPLYRXP to be more robust on your match.

Another possible, and quick-n-dirty, solution is:

<SubjectStripCode>
s/\[Crossword\]\s*//;
</SubjectStripCode>

I.e.  Remove the anchor to the beginning of the line.

Note, you can have multiple s/// operations to handle more complicated
tasks.

        --ewh

==
Earl Hood
[EMAIL PROTECTED]
http://www.oac.uci.edu/indiv/ehood/




_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com

Reply via email to