🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #129457

Re: [Xnews] regex assistance needed

#129457
From: Murray Peterson
Date: Fri, 25 Jul 2003 18:39
30 lines
2001 bytes
Sepp <seppludwig@isuisse.com> wrote in 
news:Xns93C3CCF5222E3Sepp@130.133.1.4:

> Sepp <seppludwig@isuisse.com> wrote in 
> news:Xns93C3B1749D6E8Sepp@130.133.1.4:
> this works:
> 
> (?-i)[a-z]
> 
> this will give you all subjects which are NOT all capitals.
> 
> press "i" to get the inverse, that is, the articles which ARE only
>  capitals.
> 
> I don't know if it is just my setup, but it seems that xnews  
> defaults to "ignore upper or lowercase", which normally is switched
> on by (?i).
> 
> Hence I have switched it off with (?-i) and eureka, it worked!

Comparisons are case insensitive by default, but this does not apply to 
items inside a character class.  e.g. [A-Z] will only match upper case 
letters, without the need for the ?-i switch.


-- 
Murray Peterson
Email: murray_peterson@shaw.ca (remove underscore)
URL:   http://members.shaw.ca/murraypeterson/
Technical Details
Message-ID: <Xns93C3819316F9Dfarkle@24.71.223.159>
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!logbridge.uoregon.edu!snoopy.risq.qc.ca!chi1.webusenet.com!news.webusenet.com!pd2nf1so.cg.shawcable.net!residential.shaw.ca!news2.calgary.shaw.ca.POSTED!not-for-mail
References: <Xns93C34E26ED97CDarrienL@140.99.99.130> <Xns93C3B1749D6E8Sepp@130.133.1.4> <Xns93C3CCF5222E3Sepp@130.133.1.4>

Show Full Headers
Complete Article Headers
Message-ID: <Xns93C3819316F9Dfarkle@24.71.223.159>
Subject: Re: [Xnews] regex assistance needed
Date: Fri, 25 Jul 2003 18:39:10 GMT
From: Murray Peterson <mwp@home.com.invalid>
References: <Xns93C34E26ED97CDarrienL@140.99.99.130> <Xns93C3B1749D6E8Sepp@130.133.1.4> <Xns93C3CCF5222E3Sepp@130.133.1.4>
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!logbridge.uoregon.edu!snoopy.risq.qc.ca!chi1.webusenet.com!news.webusenet.com!pd2nf1so.cg.shawcable.net!residential.shaw.ca!news2.calgary.shaw.ca.POSTED!not-for-mail
X-Trace-PostClient-IP: 68.145.203.126
Newsgroups: news.software.readers
Organization: None
User-Agent: Xnews/06.02.16
Lines: 29
NNTP-Posting-Host: 24.71.223.147
X-Complaints-To: abuse@shaw.ca
X-Trace: news2.calgary.shaw.ca 1059158350 24.71.223.147 (Fri, 25 Jul 2003 12:39:10 MDT)
NNTP-Posting-Date: Fri, 25 Jul 2003 12:39:10 MDT