🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #235487

Re: ARG!!!! \b again...

#235487
From: Mike Dee
Date: Wed, 16 Sep 2009 02:24
38 lines
3266 bytes
JimH wrote:

> Mike Dee <mikedee@emteedee.invalid> wrote in 
> news:pan.2009.09.14.02.24.35.205908@emteedee.invalid:
>
>> Using the regex \B_(and|&)_\B again as an example: 
[...]
>> If you were to write the above regex separately as \B_and_\B and \B_&_\B
>> there would be no sub-pattern matching involved, you would get a matched
>> string on "_and_" and "_&_" alone, if those conditions were met. 
> 
> Ah, ok I see what you're saying. I did mean score on the subpattern alone. It 
> would be nice if there was some way it could do a "partial score" to give me 
> some idea how well it matched. Oh well, dreams are easy and free. :)

Yes, a sub-pattern is inclusive of the whole regex, either you will get a
matching pattern or you won't.
 
> I've got a text editor (and a file renamer too - which is handy) that
> can use regexps, but until I verify a candidate as working in XNews, I
> keep it in my mental "unconfirmed" bin. This menu option will allow that
> bin to keep from growing too large (at my age, that's always a plus).

I think you'll find Xnews's built-in regex tester a very helpful tool.
With the added bonus of whatever regex you test with it, it will work in
Xnews - if it gets a match in the tester. If you get "No Match" in
the tester, then its not going to work, period, unless you can fix the
mistake.

My only beef with it, is it can't tell you why a regex doesn't work if
you don't get a match - Oh well, I can't complain about the price when it
comes to Xnews, eh? ;-)

Cheers.

-- 
dee
Technical Details
Message-ID: <pan.2009.09.16.02.24.25.960607@emteedee.invalid>
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: <Xns9C852D00C2A53hahadotdotdot@74.209.136.97> <Xns9C85D3BE515ADemteedee@87.106.137.111> <Xns9C854F4C319FAhahadotdotdot@74.209.136.98> <Xns9C85E83939B0Cemteedee@87.106.137.111> <Xns9C8568DEE88B1hahadotdotdot@74.209.136.91> <pan.2009.09.14.02.24.35.205908@emteedee.invalid> <Xns9C863C1F06EA9hahadotdotdot@74.209.136.98>

Show Full Headers
Complete Article Headers
Message-ID: <pan.2009.09.16.02.24.25.960607@emteedee.invalid>
Subject: Re: ARG!!!! \b again...
Date: Wed, 16 Sep 2009 12:24:29 +1000
From: Mike Dee <mikedee@emteedee.invalid>
References: <Xns9C852D00C2A53hahadotdotdot@74.209.136.97> <Xns9C85D3BE515ADemteedee@87.106.137.111> <Xns9C854F4C319FAhahadotdotdot@74.209.136.98> <Xns9C85E83939B0Cemteedee@87.106.137.111> <Xns9C8568DEE88B1hahadotdotdot@74.209.136.91> <pan.2009.09.14.02.24.35.205908@emteedee.invalid> <Xns9C863C1F06EA9hahadotdotdot@74.209.136.98>
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: 38
NNTP-Posting-Host: eJwFwYEBwDAEBMCVlPcYJyH2H6F3bvzYATrh6yux2hIJsuW8SmF7WdidUYxOJ5F6gGI9eoU93nTI6s2dHzOjFMU=
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: solani.org
 eJwNykcBwEAIADBL7CGHY/iX0OYdZUNrF1MTPb03VREMdeqNGox+bLow6ohTO84Ura3ymhCo7CVGeJRk2DEfpID/NfdIkd56Lm0haP9Ztit7A+UgKFdadsBFskj8uWYbDtGyBQd/XXcqkg==
X-Complaints-To: abuse@news.solani.org
NNTP-Posting-Date: Wed, 16 Sep 2009 02:24: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:Bu3ZaZDGIvaM1ACPZxcgMpOZzYg=
User-Agent: Pan/0.14.2.91 (Linux host, Mac OS, X-server)