🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #109572

Re: [XNews] Help with a Regular Expression

#109572
From: mdk
Date: Fri, 13 Sep 2002 13:49
49 lines
2145 bytes
"Ted S." <fedya@bestweb.spam> wrote in 
news:Xns928861806771C8jUwe9053kODf78sfkj0@127.0.0.1:

> Somebody claiming to be mdk <mdk@mdk.com> wrote in
> news:alsm2h$peib$1@ID-98166.news.dfncis.de: 
> 
>> I am trying to sort the groups so that I see only the ones I want.
>> 
>> I want only to see groups that contain public.windowsxp but not the
>> ones that have public.windowsxp.beta.
>> 
>> Doing this:
>> 
>> c.windowsxp
>> 
>> gives me everything including the beta stuff.
>> 
>> So I thought doing something like this:
>> 
>> c.windowsxp.(!b)
>> 
>> would remove everything starting with a b after the dot.
>> 
>> Instead it removes everything.  I've tried various variations but to
>> no avail.
> 
> I'm not an expert on regexes, but the first thing to do is escape the . 
> characters, eg. c\.windowsxp\.  Remember that a . matches any character
> 
> From the manual, it looks as though 
> 
> c\.windowsxp\.(?!b) 
> 
> should do it.
> 
> However, I haven't tested this, and don't do all that much regexing 
> myself.  I'll let the experts tell you whether or not this is right.
> 
> 

Yes, this:

c\.windowsxp\.(?!b)

worked.  But even after reading about the ? in the manual I don't 
understand why.  What is the ? doing?

Thanks
Technical Details
Message-ID: <alsqd5$pjo0$1@ID-98166.news.dfncis.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsmi-us.news.garr.it!NewsITBone-GARR!area.cu.mi.it!newsfeeder.edisontel.com!fu-berlin.de!uni-berlin.de!63.119.78.4!not-for-mail
References: <alsm2h$peib$1@ID-98166.news.dfncis.de> <Xns928861806771C8jUwe9053kODf78sfkj0@127.0.0.1>

Show Full Headers
Complete Article Headers
Message-ID: <alsqd5$pjo0$1@ID-98166.news.dfncis.de>
Subject: Re: [XNews] Help with a Regular Expression
Date: Fri, 13 Sep 2002 13:49:26 +0000
From: mdk <mdk@mdk.com>
References: <alsm2h$peib$1@ID-98166.news.dfncis.de> <Xns928861806771C8jUwe9053kODf78sfkj0@127.0.0.1>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsmi-us.news.garr.it!NewsITBone-GARR!area.cu.mi.it!newsfeeder.edisontel.com!fu-berlin.de!uni-berlin.de!63.119.78.4!not-for-mail
Newsgroups: news.software.readers
Lines: 48
NNTP-Posting-Host: 63.119.78.4
X-Trace: fu-berlin.de 1031924966 839424 63.119.78.4 (16 [98166])
User-Agent: Xnews/5.04.25