Re: MT NewsWatcher filtering



In article <240920091009328094%jimsgibson@xxxxxxxxx>,
Jim Gibson <jimsgibson@xxxxxxxxx> wrote:

In article <jollyroger-C54572.11211424092009@xxxxxxxxxxxxxxxxxxx>,
Jolly Roger <jollyroger@xxxxxxxxx> wrote:

In article <jollyroger-B0D8D3.20041823092009@xxxxxxxxxxxxxxxxxxx>,
Jolly Roger <jollyroger@xxxxxxxxx> wrote:

The resulting filter will kill any post that has a string of one or more
of the characters 1, 2, 3, 4, 5, or 6 (or whatever you put in their
place).

Correction:

I don't know why, but I included the ^ character in the
expression, which makes it match any string of characters that does NOT
include the specified characters! So change it to [123456]+ and it will
do what you expect:

Kill if Subject Matches the regular expression: [123456]+

The plus sign shouldn't be necessary for most regular expression
engines. The regular expression "[123456]" will match if any one
character 1-6 exists in the string. You don't really care if there is a
set of one or more, just if any character in the set given in brackets
([]) exists in the string you are testing.

I'm not prepared to make that assumption. It may very well be the OP
wants to match one or more of the offending characters, in which case
the + would be required. It would be very helpful to have some real
examples of subjects he wants to match, of course.

--
Send responses to the relevant news group rather than email to me.
E-mail sent to this address may be devoured by my very hungry SPAM
filter. Due to Google's refusal to prevent spammers from posting
messages through their servers, I often ignore posts from Google
Groups. Use a real news client if you want me to see your posts.

JR
.



Relevant Pages

  • Re: Regular expression
    ... Jolly Roger wrote: ... modifiers. ... to match any character and the '*' character as a modifier to mean ... Perhaps Gary can tell us inquisitive minds what regular expression ...
    (comp.sys.mac.system)
  • Donald is everything alright?
    ... string of posts that you have been emitting is out of character for ... In your past posts you seem to like to "pick a nit", ... string of mildly annoying posts? ...
    (rec.pyrotechnics)
  • Re: What does the @ mean at the end of a permissions string?
    ... Jim wrote: ... Jolly Roger wrote: ... "If the file or directory has extended attributes, the permissions field ... printed by the -l option is followed by a '@' character." ...
    (comp.sys.mac.system)
  • Re: Free Space Monster (episode 2)
    ... Mark Conrad wrote: ... Jolly Roger wrote: ... and ASCII anything is ... a CHARACTER. ...
    (comp.sys.mac.apps)
  • Re: MT NewsWatcher filtering
    ... Jolly Roger wrote: ... which makes it match any string of characters that does NOT ... character 1-6 exists in the string. ... Jim Gibson ...
    (comp.sys.mac.system)