Article View: news.software.readers
Article #26191trn killfile - weak regexps
From: Olaf Titz
Date: Sat, 21 Sep 1996 00:00
Date: Sat, 21 Sep 1996 00:00
22 lines
1307 bytes
1307 bytes
trn's old-fashioned simple regexp matcher explicitly forbids
\(...\|...\) contructs. It seems this limits the use of \| to
alternate complete patterns.
Does that mean, if I want to kill (in egrep syntax)
(make|easy|fast|quick).*(money|cash|rich|\$\$\$)
I have to break it up like
make.*money\|make.*cash\|easy.*money
and so on?
Seems like it would be a good idea to put an alternate regexp matcher
(Spencer's or perl or POSIX on systems that have it?) into trn...
olaf
--
___ Olaf.Titz@inka.de or @{stud,informatik}.uni-karlsruhe.de ____
__ o <URL:http://www.inka.de/~bigred/> <IRC:praetorius>
__/<_ >> Just as long as the wheels keep on turning round
_)>(_)______________ I will live for the groove 'til the sun goes down << ____
Technical Details
Message-ID:
<dy1y7j.g81@bigred.inka.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!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <dy1y7j.g81@bigred.inka.de> Subject: trn killfile - weak regexps Date: Sat, 21 Sep 1996 00:00:00 +0000 From: Olaf Titz <olaf@bigred.inka.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!not-for-mail X-Deja-AN: 184297399 Organization: private Linux site, southern Germany Newsgroups: news.software.readers