Very helpful tool for regex
http://weitz.de/regex-coach/
Mike
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Robert Menschel
Sent: Wednesday, November 05, 2003 12:00 AM
To: Christopher Eykamp
Cc: Spamassassin Talk
Subject: Re: [SAtalk] RegEx Question
Robert Menschel <[EMAIL PROTECTED]> wrote:
> CE> How can I match the following: "s\.ex" and "se\.x" and
> "s\.e\.x" but CE> not "sex" without including all the possible
> permutations? Is there CE> an elegant solution?
>
> Would /\bs\.?e\.?x\b/ work?
No, because that matches "sex". But this w
My obfuscation script can do the dirty work for ya...
http://sandgnat.com/cmos/ .
Click the link to the live rule generator and try:
BODY /\bsex\b/
Make sure to check "match obfu only". (the trick is the negative look-ahead)
HTH,
Chris
P.S. lotsa Chris's around here,eh?
Theo Van Dinter said:
> O
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hello Christopher,
Tuesday, November 4, 2003, 5:34:53 PM, you wrote:
CE> I am pretty good at regex, but am stumped by this seemingly easy
problem:
CE> How can I match the following: "s\.ex" and "se\.x" and "s\.e\.x" but
CE> not "sex" without includi
er, I mean you should try...
BODY SEX /\bsex\b/
...if you want it to do stuff
(gotta name the rule)
Chris
Chris Thielen said:
> My obfuscation script can do the dirty work for ya...
> http://sandgnat.com/cmos/ .
> Click the link to the live rule generator and try:
> BODY /\bsex\b/
> Make sure to
On Tue, Nov 04, 2003 at 05:34:53PM -0800, Christopher Eykamp wrote:
> How can I match the following: "s\.ex" and "se\.x" and "s\.e\.x" but not
> "sex" without including all the possible permutations? Is there an elegant
> solution?
Well, I have two thoughts on this.
1) you're trying to do some
I am pretty good at regex, but am stumped by this seemingly easy problem:
How can I match the following: "s\.ex" and "se\.x" and "s\.e\.x" but not
"sex" without including all the possible permutations? Is there an elegant
solution?
Thanks,
Chris