🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #151524

Re: [slrn] Scoring Problem

#151524
From: Mike Vanecek
Date: Sat, 10 Jul 2004 15:28
49 lines
2510 bytes
On 10 Jul 2004 08:14:47 GMT, Tech Zero wrote:
> The voice of "Mike Vanecek" drifted in on the cyber-winds, 
> from the sea of virtual chaos...

>>> I should have worded it difrently...

>>>   \bflower  ->  \<flower
>>>   flower\b  ->  flower\>

>>> Does that make sence?

>> Uhm, I thought 

>> \<flower matched flower at the beginning of the word
>> e.g., flower flowering but not sflower

>> flower\> matched flower at the end of the word
>> e.g., sflower xxxflower but not flowers

>> I thought \b was the same as \<...\>
>> e.g., match only flower not match flowers or aflower

>> My confusion I guess about \b ?


> "\b" is a "word boundery", so it matches like "\<" or "\>" depending 
> on where it's placed in relation to the word...

> From http://www.s-lang.org/doc/html/slang-18.html...

>    \<         Match the beginning of a word.
>    \>         Match the end of a word.

> So...
>   XNEWS PCRE     slrn s-lang

>   \bflower       \<flower    - Matches "flower" & "flowers", but not "deflower"
>   flower\b       flower\>    - matches "flower" & "deflower", but not "flowers"
>   \bflower\b     \<flower\>  - Only matches "flower"

> Has that cleared it up?

Yes, thank you. I had interpreted \b incorrectly. Did not know it was needed
on both sides.


-- 
  Thanks, Mike.
Technical Details
Message-ID: <s6e5s1-b9p.ln1@news.invalid.99computer>
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!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshosting.com!nx02.iad01.newshosting.com!140.99.99.194.MISMATCH!newsfeed1.easynews.com!easynews.com!easynews!newscene!novia!novia!sequencer.newscene.com!not-for-mail
References: <uvigr1-elj.ln1@news.invalid.99computer> <slrncebcri.rju.keeling@infidel.spots.ab.ca> <Xns951A8D589B5D3ZeroOne@raven.dragonfur.ca> <qtf0s1-fei.ln1@news.invalid.99computer> <m9o2s1-ghl.ln1@news.invalid.99computer> <Xns9521818637ECCZeroOne@raven.dragonfur.ca> <7nq3s1-nlm.ln1@news.invalid.99computer> <Xns952216D9D3237ZeroOne@raven.dragonfur.ca>

Show Full Headers
Complete Article Headers
Message-ID: <s6e5s1-b9p.ln1@news.invalid.99computer>
Subject: Re: [slrn] Scoring Problem
Date: Sat, 10 Jul 2004 15:28:24 +0000
From: Mike Vanecek <MikeV99@privacy.net>
References: <uvigr1-elj.ln1@news.invalid.99computer> <slrncebcri.rju.keeling@infidel.spots.ab.ca> <Xns951A8D589B5D3ZeroOne@raven.dragonfur.ca> <qtf0s1-fei.ln1@news.invalid.99computer> <m9o2s1-ghl.ln1@news.invalid.99computer> <Xns9521818637ECCZeroOne@raven.dragonfur.ca> <7nq3s1-nlm.ln1@news.invalid.99computer> <Xns952216D9D3237ZeroOne@raven.dragonfur.ca>
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!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshosting.com!nx02.iad01.newshosting.com!140.99.99.194.MISMATCH!newsfeed1.easynews.com!easynews.com!easynews!newscene!novia!novia!sequencer.newscene.com!not-for-mail
Newsgroups: news.software.readers
Lines: 49
X-Archive: encrypt
User-Agent: slrn/0.9.8.0 (Linux)