Re: MT NewsWatcher filtering
- From: Jolly Roger <jollyroger@xxxxxxxxx>
- Date: Thu, 24 Sep 2009 12:44:36 -0500
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
.
- Follow-Ups:
- Re: MT NewsWatcher filtering
- From: Jim Gibson
- Re: MT NewsWatcher filtering
- References:
- MT NewsWatcher filtering
- From: Salmon Egg
- Re: MT NewsWatcher filtering
- From: Jolly Roger
- Re: MT NewsWatcher filtering
- From: Salmon Egg
- Re: MT NewsWatcher filtering
- From: Jolly Roger
- Re: MT NewsWatcher filtering
- From: Jim Gibson
- MT NewsWatcher filtering
- Prev by Date: Aluminum keyboard; was Apple needs to update the Mighty mouse
- Next by Date: stop for moment
- Previous by thread: Re: MT NewsWatcher filtering
- Next by thread: Re: MT NewsWatcher filtering
- Index(es):
Relevant Pages
|