On Mon, 3 Nov 2003 11:26:05 +0200, Thomas Kinghorn <[EMAIL PROTECTED]>
posted to spamassassin-talk:
 > However, If I place a letter boundary, wouldn't words like
 > Sussex, essex etc get blocked?

No, that's what the word boundary operator does: \b requires the match
to be at a "boundary" where a "non-word" character (or beginning/end
of string etc) meets a "word" character. See the perlre manual page
for details.

Or just try it yourself:

 $ perl -ne 'print if m/\b[Ss]\W{0,3}[Ee]\W{0,3}[Xx]\b/' <<HERE
 > sex
 > s::e::x
 > essex
 > sussex
 > asterix
 > disannex
 > vasoreflex
 > HERE
 sex
 s::e::x

I.e. only the two "sex" and "s::e::x" matched and were printed.

/* era */

-- 
The email address era     the contact information   Just for kicks, imagine
at iki dot fi is heavily  link on my home page at   what it's like to get
spam filtered.  If you    <http://www.iki.fi/era/>  500 pieces of spam for
want to reach me, see     instead.                  each wanted message.



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to