🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #109571

Re: [XNews] Help with a Regular Expression

#109571
From: Ted S.
Date: Fri, 13 Sep 2002 13:42
43 lines
2012 bytes
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.


-- 
Ted S.: change .spam to .net to reply by e-mail
The way I see it, you raised three children who could knock out and hog-
tie a perfect stranger, you must be doing <something> right. -- Marge 
Simpson
<http://www.snpp.com/episodes/7G01.html>
Technical Details
Message-ID: <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!sn-xit-05!sn-xit-01!sn-post-01!supernews.com!corp.supernews.com!not-for-mail
References: <alsm2h$peib$1@ID-98166.news.dfncis.de>

Show Full Headers
Complete Article Headers
Message-ID: <Xns928861806771C8jUwe9053kODf78sfkj0@127.0.0.1>
Subject: Re: [XNews] Help with a Regular Expression
Date: Fri, 13 Sep 2002 13:42:41 -0000
From: "Ted S." <fedya@bestweb.spam>
References: <alsm2h$peib$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!sn-xit-05!sn-xit-01!sn-post-01!supernews.com!corp.supernews.com!not-for-mail
Newsgroups: news.software.readers
Organization: Your Company
X-Posting-Agent: Hamster/1.3.22.0
User-Agent: Xnews/4.06.22
X-Complaints-To: abuse@supernews.com
Lines: 42