Article View: news.software.nn
Article #8394Re: regexp to kill posts in ALL CAPS
From: Christian Weisgerber
Date: Mon, 27 Jan 1997 00:00
Date: Mon, 27 Jan 1997 00:00
40 lines
1921 bytes
1921 bytes
KRIS@KOEHNTOPP.DE (Kristian Koehntopp) writes:
> The nn regular expression mechanism is severely
> underdocumented. Not even the source reveals which regexps are
> accepted.
Check out regexp.c.
nn uses a slightly modified version of Henry Spencer's 1986 regexp
package. You can glean the accepted operators from regatom():
^ beginning of line
$ end of line
. any character
[ ] character class
including:
^ complement class
- range
( | ) alternatives
* match 0 or more times
\< start of word (nn extension)
\> end of word (nn extension)
BTW, there are at least two newgroups where killing subjects in all caps
is not desirable:
- comp.risks, where all subjects are of the "RISKS DIGEST <number>"
type, and
- rec.arts.movies.reviews, where reviewers usually spell movie titles in
all caps, and this habit carries over to the subject line, too.
Ironically, both groups are moderated and well worth reading if you are
interested in their respective topics.
--
Christian 'naddy' Weisgerber naddy@mips.pfalz.de
See another pointless homepage at <URL:http://home.pages.de/~naddy/>.
-- currently reading: A.E. van Vogt, The Voyage of the Space Beagle --
Technical Details
Message-ID:
<5citsb$lkk@mips.pfalz.de>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.mbox.zip!not-for-mailReferences:
<pjl.853382598@shellx> <5bmdj2$kq1@samba.rahul.net> <rlogin.853489363@shellx> <5bnl23$82n@white.koehntopp.de>Show Full Headers
Complete Article Headers
Message-ID: <5citsb$lkk@mips.pfalz.de> Subject: Re: regexp to kill posts in ALL CAPS Date: Mon, 27 Jan 1997 00:00:00 +0000 From: naddy@mips.pfalz.de (Christian Weisgerber) References: <pjl.853382598@shellx> <5bmdj2$kq1@samba.rahul.net> <rlogin.853489363@shellx> <5bnl23$82n@white.koehntopp.de> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.mbox.zip!not-for-mail X-Deja-AN: 214060949 Newsgroups: news.software.nn