Article View: news.software.readers
Article #35323Re: Pattern matching and trn
From: Conrad Sabatier
Date: Sat, 19 Jul 1997 00:00
Date: Sat, 19 Jul 1997 00:00
34 lines
2015 bytes
2015 bytes
In article <5qqlg3$k81@mine.informatik.uni-kiel.de>,
Claus Assmann <ca+posting@informatik.uni-kiel.de> wrote:
>
>I tried this:
>/(School\|blowjob\|Girl\|young\|hot\|Teen\|twat\|anal\|gay).*\.jpg/c:j=
>
>and it kills articles like:
>11517 hotjava question?
>166884 Re: Teenage Web Designers
>(I ran trnkill from the support directory).
>
>What's wrong with the RE? Doesn't it require that ".jpg" occurs
>somewhere in the string for a match? The trn man page (I use
>4.0-test56) says it uses REs just like ed(1) with some additions.
>If I use /hot.*\.jpg/ it matches neither line.
No, actually the above says to match "(School" or "blowjob" or ...
or "gay).*\.jpg", because the parentheses are not escaped with "\", so
they're taken as literals.
Unfortunately, I've never been able to get the type of subexpression
matching you're trying to do to work in trn. Frankly, there are a few
things in trn's regular expression handling that I just plain don't
understand, and this is one of them (along with why the {} operators don't
work, either).
I sure wish someone could clear up this mystery for us. Wayne? You
there? Anyone?
--
Conrad Sabatier | FreeBSD user since 06/96, because...
http://www.neosoft.com/~conrads | "The best things in life are free"
Technical Details
Message-ID:
<otfrq5.lv4.ln@dolphin.neosoft.com>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-mailReferences:
<5q6q0i$7ia$1@joplin.fmed.edu.uy> <5q844v$7vc$1@sloth.swcp.com> <5qqlg3$k81@mine.informatik.uni-kiel.de>Show Full Headers
Complete Article Headers
Message-ID: <otfrq5.lv4.ln@dolphin.neosoft.com> Subject: Re: Pattern matching and trn Date: Sat, 19 Jul 1997 00:00:00 +0000 From: conrads@neosoft.com (Conrad Sabatier) References: <5q6q0i$7ia$1@joplin.fmed.edu.uy> <5q844v$7vc$1@sloth.swcp.com> <5qqlg3$k81@mine.informatik.uni-kiel.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: 257873895 Organization: NeoSoft, Inc. Reply-To: conrads@neosoft.com (Conrad Sabatier) Newsgroups: news.software.readers Originator: conrads@neosoft.com (Conrad Sabatier)