Re: OT: NFilter help



Doug Miller wrote:
In article <4cp8o9F17548fU1@xxxxxxxxxxxxxx>, "Bill Stock" <me7@xxxxxxxxxxx> wrote:

rec.woodworking flag:XPOST xref:*:*:*

Xref: uni-berlin.de rec.woodworking:1274982

So this should not be flagged, but it is.

Yes, it should. You told it to. :-)

Thus, *:*:* means match zero or more of any character, followed by zero or
more colons, followed by zero or more colons.

*:.*:.* is probably closer to what you want: zero or more of any character,
followed by one colon, followed by zero or more of any character, followed by
one colon, followed by zero or more of any character.

An illustration of the difference between mere globs, and more powerful
regular expressions.

Globbing text, a "*" will grab anything, but using regular expressions a
"*" is a "zero or more" quantifier for the preceding symbol, which in
this case is a character (irrelevant, since you are matching zero or
more of them it'll succeed in any case).

In regex: "." is any character and like Doug says, is prolly what you
want. You could also be stricter (always better) and use \w in
combination with "+":

\w+:\w+

Or, as you /appear/ to be interested in blocking posts to xposted to
_more_than_two_ groups:

\w+:\w+:\w+

er
--
email not valid
.



Relevant Pages

  • Re: OT: NFilter help
    ... Thus, *:*:* means match zero or more of any character, followed by zero or more colons, followed by zero or more colons. ... In other words, your filter will flag *anything* in the Xref: header, whether there are any colons present or not. ...
    (rec.woodworking)
  • Re: Admired designs / designs to study
    ... instructions to try to pack together a whole word ... resort to using one of the string or bit move ... Get the next character from the ... if the number isn't zero yet. ...
    (comp.arch)
  • Re: Word XP - Strikethrough Font & More oops
    ... There are fonts with this type of character, but they're not that easy to ... after the zero. ... Word MVP FAQ site: http://word.mvps.org ... >>> Mary Sauer MS MVP ...
    (microsoft.public.word.printingfonts)
  • Re: Trying to write strncpy() in ASM
    ... > The Dinkumware Standard C library has a better implementation than most ... > C libraries out there, ... > character, to successive elements of the array of char whose first ... > The function then stores zero or more null characters in the next ...
    (comp.lang.asm.x86)
  • Re: Generate a one-time pad from say a 256bit key?
    ... Hebrew and Arabic are on ... and not all of the character spaces are filled in. ... with two consecutive zero bytes... ... <But that's a long way from saying that you can exploit the bias to tell ...
    (sci.crypt)