Re: MT NewsWatcher filtering
- From: Jim Gibson <jimsgibson@xxxxxxxxx>
- Date: Thu, 24 Sep 2009 12:21:32 -0700
In article <jollyroger-E5A2AA.12443624092009@xxxxxxxxxxxxxxxxxxx>,
Jolly Roger <jollyroger@xxxxxxxxx> wrote:
In article <240920091009328094%jimsgibson@xxxxxxxxx>,
Jim Gibson <jimsgibson@xxxxxxxxx> wrote:
In article <jollyroger-C54572.11211424092009@xxxxxxxxxxxxxxxxxxx>,
Jolly Roger <jollyroger@xxxxxxxxx> wrote:
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.
Sure, the OP needs to adapt the suggestions made here to his/her
situation. I am just trying to point out that the plus sign is not
necessary in the case you have given, because any string that matches
[123456] will match [123456]+, and vice versa if all you are looking
for is a match/no match decision. It is a small point, but some might
be confused by its inclusion.
The plus sign might be necessary if the [123456] is part of a more
complex regular expression. For example, the string "a12b" will match
the regular expression "a[123456]+b" but not the RE "a[123456]b". In
that case, it makes a difference.
Disclaimer: I am not familiar with the regular expression engine in MT
Newswatcher.
--
Jim Gibson
.
- 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
- Re: MT NewsWatcher filtering
- From: Jolly Roger
- MT NewsWatcher filtering
- Prev by Date: Re: Aluminum keyboard; was Apple needs to update the Mighty mouse
- Next by Date: Re: Apple needs to update the Mighty mouse
- Previous by thread: Re: MT NewsWatcher filtering
- Next by thread: stop for moment
- Index(es):
Relevant Pages
|