🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #202415

Re: [slrn] strip_was_regexp

#202415
From: Adam Funk
Date: Wed, 25 Jul 2007 09:32
28 lines
2154 bytes
On 2007-07-24, Peter J Ross wrote:

> Because the "]" immediately follows the "[". The interpreter knows
> that "[]" would be nonsense - at least I hope it does, but I'm
> generally more familiar with PCRE than with S-Lang regexes.
>
> This should work too:
>
> 	[)\]]
>
> If the "]" isn't the first character after the "[", it needs to be
> escaped.
>
> I'm hoping that slrn 1.1 will use PCRE, because there's a PCRE module
> in S-Lang and nobody prefers S-Lang's native regexes if PCRE is
> available.  But I think that fixing the charset problems resulting
> from the switch to s-lang 2.X and UTF-8 will be good enough for slrn
> 1.0. There are no other big problems to delay a 1.0 relasae, are
> there?
>
> I know so little about S-Lang that I'm crossposting to CLS-L in case
> I'm writing nonsense. In particular, expert scrutiny of
>
> 	strip_was_regexp " ?[([][wW]as:.*[])]$"
>
> would be useful to us amateurs.

I've tested it and as far as I can tell it works.  Thanks.
Technical Details
Message-ID: <buhjn4-o1o.ln1@news.ducksburg.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.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news-lei1.dfn.de!news1.uni-leipzig.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <d9lim4-kie.ln1@news.ducksburg.com> <4697cc80$1$79675$dbd41001@news.wanadoo.nl> <gq3lm4-8ja.ln1@news.ducksburg.com> <slrnf9fr8c.ec7.pjr@pjr.gotdns.org> <slrnf9fs71.r4c.pjr@pjr.gotdns.org> <lqvhn4-1u3.ln1@news.ducksburg.com> <slrnfacoc2.kgr.pjr@pjr.gotdns.org>

Show Full Headers
Complete Article Headers
Message-ID: <buhjn4-o1o.ln1@news.ducksburg.com>
Subject: Re: [slrn] strip_was_regexp
Date: Wed, 25 Jul 2007 10:32:27 +0100
From: Adam Funk <a24061@ducksburg.com>
References: <d9lim4-kie.ln1@news.ducksburg.com> <4697cc80$1$79675$dbd41001@news.wanadoo.nl> <gq3lm4-8ja.ln1@news.ducksburg.com> <slrnf9fr8c.ec7.pjr@pjr.gotdns.org> <slrnf9fs71.r4c.pjr@pjr.gotdns.org> <lqvhn4-1u3.ln1@news.ducksburg.com> <slrnfacoc2.kgr.pjr@pjr.gotdns.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news-lei1.dfn.de!news1.uni-leipzig.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
Newsgroups: news.software.readers,comp.lang.s-lang
Lines: 28
X-Trace: individual.net lD8QmJ2AUmG62OCNv4pRTggIorFU0oBicCH6cHf4ptHbySdocr
X-Orig-Path: news.ducksburg.com!news
Cancel-Lock: sha1:XFl4qLOqaehueYhOoMLT5aOvplo=
User-Agent: slrn/0.9.8.1pl1 (Debian)