Hi,

On Tue, 12 Aug 2003, Patrick Morris wrote:

> Robin Witkop-Staub wrote:
>
> >What does /b in front of this filter mean?
> >
> >body RAVEN_VIAGRA_OBSCURED   /\bV.i.a.g.r.a/i
> >describe RAVEN_VIAGRA_OBSCURED       contains advertising Viagra by any name
> >score RAVEN_VIAGRA_OBSCURED  50.0
>
> It means the "V" must be preceeded by a "word boundary" (such as a
> space, line break, etc.).

>From `perldoc perlre`:

"A word boundary ("\b") is a spot between two characters that has a "\w"
on one side of it and a "\W" on the other side of it (in either order),
counting the imaginary characters off the beginning and end of the string
as matching a "\W".  (Within character classes "\b" represents backspace
rather than a word boundary, just as it normally does in any double-quoted
string.)"

If you have detailed questions about existing rules or you want to write
your own, you really need to read Perl's regular expression docs
first.

-- Bob



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to