Re: OT: NFilter help



In article <4cp8o9F17548fU1@xxxxxxxxxxxxxx>, "Bill Stock" <me7@xxxxxxxxxxx> wrote:
I've got my test filter set up as:

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

Header looks like:

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

So this should not be flagged, but it is.

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

What am I doing wrong?

Trying to write regexps without understanding them fully, or not paying as
much attention as you should. :-)

Asterisk means "match zero or more of the preceding character".

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.

*:.*:.* 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.

Or you could just download my filter file, instead of trying to write your
own. (see my sig for details)


--
Regards,
Doug Miller (alphageek-at-milmac-dot-com)

Get a copy of my NEW AND IMPROVED TrollFilter for NewsProxy/Nfilter
by sending email to autoresponder at filterinfo-at-milmac-dot-com
You must use your REAL email address to get a response.

Download Nfilter at http://www.milmac.com/np-120.exe

.



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: OT: NFilter help
    ... Doug Miller wrote: ... more colons, followed by zero or more colons. ... followed by one colon, followed by zero or more of any character, followed by ...
    (rec.woodworking)
  • Re: Punctuation
    ... "For all epsilon greater than zero, there exists a delta greater than ... Would the proper punctuation be the insertion of colons: ... but readability would suffer a lot: ...
    (sci.math)
  • Re: Hey!
    ... XRef: alt\.flame ... but if they eliminate multiple crossposts that would do it. ... Search strings. ... It's looking for XRef and four colons with any series ...
    (misc.writing)
  • Re: Hey!
    ... XRef: alt\.flame ... but if they eliminate multiple crossposts that would do it. ... Search strings. ... It's looking for XRef and four colons with any series ...
    (misc.writing)