You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by wolfgang <me...@gmx.net> on 2005/05/01 11:57:46 UTC

regexp: exclude a string

in a SA rule, i want to match
/p(?:0|o)rtf(?:0|o)(?:\||l)i(?:0|o)/
but not portfolio

what exactly is the regexp syntax to achieve that?

thanks,

wolfgang

Re: regexp: exclude a string

Posted by wolfgang <me...@gmx.net>.
In an older episode (Sunday 01 May 2005 12:49), Loren Wilton wrote:
> > /p(?:0|o)rtf(?:0|o)(?:\||l)i(?:0|o)/
> > but not portfolio
> 
> /(?!portfolio)p(?:0|o)rtf(?:0|o)(?:\||l)i(?:0|o)/

thanks, works fine.

wolfgang

Re: regexp: exclude a string

Posted by Loren Wilton <lw...@earthlink.net>.
> /p(?:0|o)rtf(?:0|o)(?:\||l)i(?:0|o)/
> but not portfolio

/(?!portfolio)p(?:0|o)rtf(?:0|o)(?:\||l)i(?:0|o)/

        Loren