Article View: news.software.readers
Article #221268Re: XNEWS - filter out [OT]
From: »Q«
Date: Sun, 25 May 2008 07:45
Date: Sun, 25 May 2008 07:45
55 lines
3134 bytes
3134 bytes
In <news:Xns9AA9391D740Femteedee@193.201.53.67>,
Mike Dee <emteedee@invalid.invalid> wrote:
> Mike Dee <emteedee@invalid.invalid> wrote:
>
> > Erm, if the OP is about...
> >
> > [.]
> >
> > Score: -9999
> > Subject \[ot\]
>
> And just to be on the demi-pedantic "safe side"...
>
> [.]
>
> Score: -9999
> Subject \b\[?ot\]\b?(\s|$)
>
> Description: word boundary (of ot) begins with a "[" (perhaps)... but
> if not, it does consist of the first letter "o" definitely. Next
> letter is a "t" and then maybe even a "]" but either must either be
> followed by a space, or else "t" or "]" must be the final character
> in the string.
>
> That is: The word "ot" may have some surrounding characters
> (preferably "[" and "]" but otherwise, it must be a word consisting
> of two letters beginning with "o" and ending with "t".
That regex doesn't seem to fit your description of it. For example,
it won't match
Subject: ot
Using \b instead of \[ and \] makes sense to me, but I don't see why
you'd want to use both \b and the brackets. And the first one, \b\[?o
is redundant in cases you want to match, since \bo would also match any
non-word character followed by o, including "[o" -- so using \b\[?o just
makes sure you don't match things like [[o at that point, so your regex
also won't match things like:
Subject: [[OT]] example topic
And tossing in the (\s|$) means it won't match if text is jammed
against the [ot], for example
Subject: [OT]example topic
I'm not clear on what you want to do with that regex. What kinds of
false positives are you trying to rule out by not just using \bot\b ?
--
»Q«
Kleeneness is next to Gödelness.
Technical Details
Message-ID:
<20080525024514.37f5152c@prezmyra.remarqs.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news-lei1.dfn.de!news1.uni-leipzig.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<Xns9AA85CD6942A8YaWontFindItHere@203.26.24.228> <Xns9AA8602A88E5FYaWontFindItHere@203.26.24.228> <Xns9AA86962D47C6YaWontFindItHere@203.26.24.228> <e05457645482b7939aef7f3edc064dcbnp@goofysplace.com> <Xns9AA7D3E7EAEBCmetadyataminvalid@MR-BLACK> <Xns9AA8EE4F322Cemteedee@193.201.53.67> <Xns9AA9391D740Femteedee@193.201.53.67>Show Full Headers
Complete Article Headers
Message-ID: <20080525024514.37f5152c@prezmyra.remarqs.net> Subject: Re: XNEWS - filter out [OT] Date: Sun, 25 May 2008 02:45:14 -0500 From: »Q« <boxcars@gmx.net> References: <Xns9AA85CD6942A8YaWontFindItHere@203.26.24.228> <Xns9AA8602A88E5FYaWontFindItHere@203.26.24.228> <Xns9AA86962D47C6YaWontFindItHere@203.26.24.228> <e05457645482b7939aef7f3edc064dcbnp@goofysplace.com> <Xns9AA7D3E7EAEBCmetadyataminvalid@MR-BLACK> <Xns9AA8EE4F322Cemteedee@193.201.53.67> <Xns9AA9391D740Femteedee@193.201.53.67> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news-lei1.dfn.de!news1.uni-leipzig.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Newsgroups: news.software.readers Organization: none Lines: 55 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: individual.net oUH0SwTtKQZHyVP374KbOg3RkyqyI6KMHTUNI29oRwhdbzCOFC X-Orig-Path: prezmyra.remarqs!not-for-mail Cancel-Lock: sha1:kDAk6tidpr1RsR6fRkhuXO07020= X-Newsreader: Claws Mail 3.4.0 (GTK+ 2.12.9; i686-pc-linux-gnu)