🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #33351

Re: slrn : regular expressions

#33351
From: Eli the Bearded
Date: Tue, 06 May 1997 00:00
24 lines
2121 bytes
Guido Notari <guido.notari@jrc.it> wrote:
>This is the regular expression I use in mutt (mail reader), to recognize
>quoted text:
>"^[|:}] |^ *>|^[a-zA-Z]*> "
>It does not work in Slrn, probably due to the "|" characters. "\|" doesn't
>seem to work, either.  Any hints?

I have never used slrn, so I can't state for sure (Sven, where are you?)
but some regexp engines only like ^ at the start of an RE, so for those
"^([|:}] | *>|[a-zA-Z]*> )" would be better. You may need to use \|,
and \( and \) still.

Of course that RE will ahve problem with certain nested quotes and
odd quote strings still. AI or at least looking at multiple lines for
repeated initial strings is best. I could write a perl RE for contigous
lines fairly easily, but I doubt most newsreaders can handle perl
regexps for multiple line matches.

Elijah
------
maybe I should look into what libperl.so offers

Technical Details
Message-ID: <5ko4p0$s2e$1@news.netusa.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <slrn5munl8.63.guido.notari@pcmmlab3.jrc.it>

Show Full Headers
Complete Article Headers
Message-ID: <5ko4p0$s2e$1@news.netusa.net>
Subject: Re: slrn : regular expressions
Date: Tue, 06 May 1997 00:00:00 +0000
From: Eli the Bearded <usenet-tag@qz.little-neck.ny.us>
References: <slrn5munl8.63.guido.notari@pcmmlab3.jrc.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 239810493
X-Path-Preload: news.accessus.net preloaded to thwart rogue canceller there
X-Save-Project-Gutenberg: <URL:http://www.promo.net/pg/nl/pgny_nov96.html>
X-From-Notes: This is sent from a valid but tagged return address. Failure to include an "Re:" in the subject may cause reply mail to bounce.
Organization: Some absurd concept
X-attribution: EtB
X-Acceptable-Email-Policy: for rules about sending mail to this account see: <URL:ftp://ftp.netusa.net/users/eli/email.txt> -- plain text; <URL:http://www.netusa.net/~eli/email.html> -- html format; or <URL:mailto:email-policy@qz.little-neck.ny.us> -- autoresponse
Newsgroups: news.software.readers,alt.fan.e-t-b
X-US-Congress: Moronic Fucks.