🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #235438

Re: [xnews] set score and move message

#235438
From: Mike Dee
Date: Sat, 12 Sep 2009 11:15
63 lines
3919 bytes
JimH wrote:

> Mike Dee <mikedee@emteedee.invalid> wrote in
> news:Xns9C8378CF1712Aemteedee@87.106.137.111:
> 
>> JimH wrote:
>> 
>>> ^(re:)?\bo/?\.?t\b
>> 
>> Emphatically; No.
>> 
>> What you have there, works only on strings beginning:
>> 
>> ot, o/t, o.t
>> Re:ot, Re:o/t, Re:o.t
>> 
>> And that's it. Notice there is no space between the colon and the
>> "o". - OK, so you didn't put a space after the colon in "^(re:)?"
>> which is an easy fix, but it still requires that a post begins
>> "ot" with no allowing of braces of any kind, or possible
>> punctuations preceding the "O". A post beginning [OT] would not
>> work IOW.  
>> 
>> If there is any post in this thread that I can agree on 100%, it
>> is <<Q>>'s, who says it far more eloquently and succinctly than I
>> can: <news:20090909171735.090a6d55@bellgrove.remarqs.net>
> 
> The reason I didn't include the space was because of the first \b.
> As I've said, I'm not that familiar with this escape sequence -
> and therefore don't feel comfortable using it, and would probably
> make many mistakes. 
> 
> (While composing this reply I did learn that \b triggers on a
> change of character TYPE, not on a character itself.)
> 
> I'll probably be sticking to explicit calls for a while since it's
> easier for me to envision while writing it (even though I'll agree
> 100% that it's much harder to read).

Hi JimH,

The \b denotes a word boundary, nothing more nor less.

It works on the beginning of a word, as in: \bling - which would
find a word like "Ling" or "linger" but it will ignore a word like
"trembling". 

Or the ending of a word, as in: fling\b which would find a word like
"halfling" or "fling" but it will ignore words like "flinging",
"flings" or "halflings" etc. 

Or both the beginning AND ends of a word, as in: \bother\b which in
this example it will find only the word "other" and not "others",
"brother" or "otherworldly" etc. 

The latter example is why \bot\b is so suited to finding *only*
"OT", or if you are slightly pedantic (like me) using for example;
\bo/?\.?t\b to find potential differences that may occur between
only the "o" and the "t" boundaries of "OT" and nothing else to
either side of that. 

-- 
dee
Technical Details
Message-ID: <Xns9C84D8825B0B9emteedee@87.106.137.111>
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!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder.news-service.com!weretis.net!feeder1.news.weretis.net!news.solani.org!not-for-mail
References: <Xns9C7ECBDA4BECAammammatatiscalineti@194.177.97.96> <Xns9C7ECF92E972Chahadotdotdot@74.209.136.98> <Xns9C818F65AE920emteedee@87.106.137.111> <Xns9C81395E0DB70hahadotdotdot@74.209.136.94> <Xns9C8378CF1712Aemteedee@87.106.137.111> <Xns9C836157A806Chahadotdotdot@74.209.136.81>

Show Full Headers
Complete Article Headers
Message-ID: <Xns9C84D8825B0B9emteedee@87.106.137.111>
Subject: Re: [xnews] set score and move message
Date: Sat, 12 Sep 2009 11:15:29 +0000
From: Mike Dee <mikedee@emteedee.invalid>
References: <Xns9C7ECBDA4BECAammammatatiscalineti@194.177.97.96> <Xns9C7ECF92E972Chahadotdotdot@74.209.136.98> <Xns9C818F65AE920emteedee@87.106.137.111> <Xns9C81395E0DB70hahadotdotdot@74.209.136.94> <Xns9C8378CF1712Aemteedee@87.106.137.111> <Xns9C836157A806Chahadotdotdot@74.209.136.81>
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!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder.news-service.com!weretis.net!feeder1.news.weretis.net!news.solani.org!not-for-mail
Newsgroups: news.software.readers
Organization: Poor Boy
Lines: 63
NNTP-Posting-Host: eJwNysERACEIA8CWYEzCUY7o0X8J8t1ZLrlOQBTY7AKt/htYe1yWmfj8BjfCadbK0sRja6LpAQlWEA4=
Mime-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: solani.org
 eJwNzMkNADEIBMGUOAYw4SwY8g9h/W2py9TZO+DmsLWdWYJoopvI9hzzvgYbGS0Wi9spWilMhxu8IOu+PvqUW/U6Dj7fk4CrNG2g3okKT2jXF6W6HKya6XXvoYZaeX8W4xk7spuRnz3pBzERKmk=
X-Complaints-To: abuse@news.solani.org
NNTP-Posting-Date: Sat, 12 Sep 2009 11:15:29 +0000 (UTC)
X-Face: $W<X:Uw4$"nTXRHqqZ=.|pFI@K,TNNH0i>-J; N5/yst7]cQb.o^L$oAhs-J!C
 AOUMQ^NHu3aTb9H8awW~4Y.LR`[o}Rz6Xf=^krb-AwUiM"7zA+QR<vWz'8>hKiTOyd]h
 z]7m=[nhuH{NMrE>~][PM`wSKd?TFV-.glh)>N
Cancel-Lock: sha1:mxQf5Vt1snEzOE5eo42eVy+U4hg=
User-Agent: Xnews/2009.05.01