Thursday, September 4, 2003, Mark Partous wrote:

U>> So if you do "(?i)[BCDFGHJKLMNPQRSTVWXZ]{4}" it might work.

> Something must be wrong with this (did not try to find out what exactly):
> when applying this to my "In" folder all the messages were transferred to the
> Spam RegEx-folder!  :-(

:-( indeed

The only thing I spot (quickly, I may admit) is that maybe there should
be a comma after the for, as this: "(?i)[BCDFGHJKLMNPQRSTVWXZ]{4,}", to
allow it to match more than four consonants.
That one is nearly identical to the help file's " [aeiou]{3,}"
example for matching three or more successive vocals.

> Could it be "brought to" would be caught too, even while ther is a blank
> space between "ght" and 't'?

Could be, but I really can't see why it should be.

In that case "(?i)\B[a-z]*[BCDFGHJKLMNPQRSTVWXZ]{4,}[a-z]*\B" should do
the trick.

Just tried it (subject-filtering the messages in my spam folder)...
It matches words like strengthen, ex-girlfriends, subscription and
increase so a little care is required.
Anyway, four misses in 396 messages isn't that bad :-)

-- 
Urban            

________________________________________________________

http://www.silverstones.com/thebat/TBUDLInfo.html

Reply via email to