You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by qqqq <qq...@usermail.com> on 2006/01/22 18:14:06 UTC

Regex help...confused about spaces.

All,

I'm confused as to how to block words with spaces.
For example,
V ia G ra
M o r t g a g e
Etc...       

TIA,

QQQQ


Re: Regex help...confused about spaces.

Posted by Phil Barnett <ph...@philb.us>.
On Sunday 22 January 2006 12:14, qqqq wrote:
> All,
>
> I'm confused as to how to block words with spaces.
> For example,
> V ia G ra
> M o r t g a g e

This seems to be very effective.

v.?[|iil1].?[a@].?g.?r.?[a@]

I also like and use the Sare rulesets, which pretty much catch all of this 
stuff. but if you insist on rolling your own, then the above is working for 
most instances.

.? = skip 0 or 1 character.

-- 
"Outlook not so good." That magic 8-ball knows everything! I'll ask about 
Exchange Server next.

Re: Regex help...confused about spaces.

Posted by Matthias Fuhrmann <Ma...@stud.uni-hannover.de>.
On Sun, 22 Jan 2006, qqqq wrote:

hI,

> All,
>
> I'm confused as to how to block words with spaces.
> For example,
> V ia G ra
> M o r t g a g e
> Etc...

are you using SARE rules already? if not, have a look at:
http://www.rulesemporium.com/rules.htm. 70_sare_obfu.cf might be usefull
in that case.

regards,
Matthias

Re: Regex help...confused about spaces.

Posted by qqqq <qq...@usermail.com>.
Hmm...

Yep, that's loaded.  I'll dig in to see what it's hitting and not hitting

Thanks,

QQQQ

----- Original Message ----- 
From: "Matt Kettler" <mk...@comcast.net>
To: "qqqq" <qq...@usermail.com>
Cc: <us...@spamassassin.apache.org>
Sent: Sunday, January 22, 2006 9:02 PM
Subject: Re: Regex help...confused about spaces.


| qqqq wrote:
| > All,
| >
| > I'm confused as to how to block words with spaces.
| > For example,
| > V ia G ra
| > M o r t g a g e
| > Etc...      
| > TIA, 
| 
| Really, if you're using SA 3.1.0 all you should need to do is make sure
| your v310.pre has the replacetags plugin.  All those spacings should be
| covered by the FUZZY_* family of rules that become active when
| replacetags is loaded.
| 
| 

Re: Regex help...confused about spaces.

Posted by Matt Kettler <mk...@comcast.net>.
qqqq wrote:
> All,
>
> I'm confused as to how to block words with spaces.
> For example,
> V ia G ra
> M o r t g a g e
> Etc...      
> TIA, 

Really, if you're using SA 3.1.0 all you should need to do is make sure
your v310.pre has the replacetags plugin.  All those spacings should be
covered by the FUZZY_* family of rules that become active when
replacetags is loaded.