Article View: news.software.readers
Article #125423Re: Improving S-Lang regular expressions to get slrn to match quoted lines
From: Andrew Preater
Date: Mon, 26 May 2003 19:48
Date: Mon, 26 May 2003 19:48
22 lines
2222 bytes
2222 bytes
* surtin <surtin@you.really.dont.need.to.message.me.org>: > The regular expressions used for my quoting right now are the > default ones slrn already uses for ignore_quotes, so that's... ><:=| > correct? There are plenty of examples floating around on the Net -- look for sample slrnrcs. Mine needs a spring clean so I've these spare: %ignore_quotes "^ ? ?[A-Za-z0-9]*[]-|>#:)}=+%>]" % Too aggressive %ignore_quotes "^[>|#:][>|#: ]" % Not aggressive enough! %ignore_quotes "^ ? ?[]-|>#:)}=+%>]" % Sven's. ignore_quotes "^ *[a-zA-Z-]*>" "^ *[\]|)]" "^ *:[^-()^]" % From Tomasz Sienicki. Doesn't catch lines starting with a :) IMO the last one is just right. Other stuff at "tsca's S-Lang page": http://www.geocities.com/tsca.geo/slang.html but I guess you already know about that. :) -- Andrew Preater
Technical Details
Message-ID:
<slrnbd4rrv.1r2.preater@preater.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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!nntp.theplanet.net!inewsm1.nntp.theplanet.net!newspeer.lavaseals.co.uk!zen.net.uk!landlord!stones.force9.net.POSTED!not-for-mailReferences:
<slrnbd13ki.mhd.surtin@dsl093-187-082.chi2.speakeasy.net> <slrnbd303s.tld.surtin@dsl093-187-082.chi2.speakeasy.net> <slrnbd3bil.or0.jbn@forestfield.org> <slrnbd3hbm.ivk.surtin@dsl093-187-082.chi2.speakeasy.net>Show Full Headers
Complete Article Headers
Message-ID: <slrnbd4rrv.1r2.preater@preater.com> Subject: Re: Improving S-Lang regular expressions to get slrn to match quoted lines Date: Mon, 26 May 2003 20:48:15 +0100 From: Andrew Preater <preater@deadspam.com> References: <slrnbd13ki.mhd.surtin@dsl093-187-082.chi2.speakeasy.net> <slrnbd303s.tld.surtin@dsl093-187-082.chi2.speakeasy.net> <slrnbd3bil.or0.jbn@forestfield.org> <slrnbd3hbm.ivk.surtin@dsl093-187-082.chi2.speakeasy.net> 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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!nntp.theplanet.net!inewsm1.nntp.theplanet.net!newspeer.lavaseals.co.uk!zen.net.uk!landlord!stones.force9.net.POSTED!not-for-mail Newsgroups: news.software.readers Organization: AOLM slrn Mafia Reply-To: usenet@preater.com Mail-Copies-To: nobody X-Editor: Vim 6.1 http://www.vim.org User-Agent: slrn/0.9.7.4 (GNU/Linux) Lines: 21 NNTP-Posting-Host: 212.56.65.190 X-Complaints-To: abuse@plus.net.uk X-Trace: stones.force9.net 1053982044 212.56.65.190 (Mon, 26 May 2003 21:47:24 BST) NNTP-Posting-Date: Mon, 26 May 2003 21:47:24 BST