Article View: news.software.readers
Article #15912Re: Help composing trn killfile regexp
From: Paul Tomblin
Date: Fri, 10 Mar 1995 02:07
Date: Fri, 10 Mar 1995 02:07
24 lines
1772 bytes
1772 bytes
In a previous article, c0905032@techst02.technion.ac.il (Michael N. Livshin) said: >Hi there! > >How a shout-killing regexp might look? >I tried /^[^a-z]*$/:j, but it doesn't work. > >Maybe I'm doing something really stupid - it's pretty late :) Shout killing? What your regexp does is kill all posts in which the subject line has no lower case. However, depending on what your LOCALE is set to, this might not work. I remember getting bitten when working in the UK by the fact that on an RS/6000, grep '[A-Z]' actually matched all the upper case letters, PLUS all the lower case letters except one (either a or z, I can't remember which). I don't know if the regexp library used by trn cares about locale, but it's one thing to test, since you're coming from Israel which may have it's own ideas about alphabetic collating sequences. -- Paul Tomblin <a href=http://watt.oedison.com/~tomblinp/>My home page</a> Unlike Ewan Kirk, I am incapable of being nicey, british, and short.
Technical Details
Message-ID:
<D57CKL.4oE@compass.telemax.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!bga.com!news.sprintlink.net!howland.reston.ans.net!usenet.ins.cwru.edu!neoucom.edu!neoucom.edu!redpoll!compass!ptomblinReferences:
<D56v3v.HD1@discus.technion.ac.il>Show Full Headers
Complete Article Headers
Message-ID: <D57CKL.4oE@compass.telemax.com> Subject: Re: Help composing trn killfile regexp Date: Fri, 10 Mar 1995 02:07:32 GMT From: ptomblin@compass.telemax.com (Paul Tomblin) References: <D56v3v.HD1@discus.technion.ac.il> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!bga.com!news.sprintlink.net!howland.reston.ans.net!usenet.ins.cwru.edu!neoucom.edu!neoucom.edu!redpoll!compass!ptomblin Newsgroups: news.software.readers Sender: ptomblin@compass.telemax.com (Paul Tomblin) Organization: Tomblin Computer Consulting, Akron, Ohio and Ottawa, Ontario Lines: 24