Article View: news.software.readers
Article #119913Re: slrn: is it possible to change 'identity' on a per-newsgroup basis?
From: Emmanuele Bassi
Date: Fri, 07 Feb 2003 23:37
Date: Fri, 07 Feb 2003 23:37
34 lines
2871 bytes
2871 bytes
* Thomas Schultz <tststs@gmx.de> [2003-02-07 16:49]: >> When S-Lang will be shipped with the PCRE module, that John Davis has >> so kindly provided, these kind of regular expression will be possible >> to be parsed out (although, I would not recommend them: they are >> difficult to read and/or maintain). > > S-Lang already has builtin regexp matching. It's not nearly as > sophisticated as the PCRE library and has a slightly different syntax, > but it is sufficient to match a string against simple regular > expressions like "^foo\." or "\.baz\." (see string_match). I know that. But regular expressions in S-Lang do not support an OR-like operator, meaning that a PCRE-like: (comp.*|news.*|sci.*) Won't be recognized. When I had to choose how to implement Identity, I though that using a function that accepted more regular expressions (and did a multiple check for a match using atomical-only regexp, practically writing the support for non atomical regexp in a S-Lang function) wasn't worth the additional overhead of a 'clone' function; so, I chose 'clone'. Bye, Emmanuele. -- Emmanuele Bassi [ http://digilander.iol.it/ebassi/slrn.html ] GnuPG Key fingerprint = 4DD0 C90D 4070 F071 5738 08BD 8ECC DB8F A432 0FF4
Technical Details
Message-ID:
<slrnb48gpc.2af.zefram@wolverine.lohacker.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!news.mailgate.org!nntp.infostrada.it!twister1.libero.it.POSTED!not-for-mailReferences:
<slrnb3b4a9.19a.use-userid-in-sig@pepper.viewport.lan> <slrnb3basl.9e1.zefram@wolverine.lohacker.net> <slrnb3ddlr.2bu.use-userid-in-sig@pepper.viewport.lan> <slrnb3e9ll.6d1.zefram@wolverine.lohacker.net> <slrnb3j5m8.49c.use-userid-in-sig@pepper.viewport.lan> <slrnb472on.149.use-userid-in-sig@pepper.viewport.lan> <slrnb47458.2f3.zefram@wolverine.lohacker.net> <slrnb47os9.1li.tststs@moonlight.tststs.ddns.org>Show Full Headers
Complete Article Headers
Message-ID: <slrnb48gpc.2af.zefram@wolverine.lohacker.net>
Subject: Re: slrn: is it possible to change 'identity' on a per-newsgroup basis?
Date: Fri, 07 Feb 2003 23:37:41 GMT
From: Emmanuele Bassi <zefram@wolverine.lohacker.home>
References: <slrnb3b4a9.19a.use-userid-in-sig@pepper.viewport.lan> <slrnb3basl.9e1.zefram@wolverine.lohacker.net> <slrnb3ddlr.2bu.use-userid-in-sig@pepper.viewport.lan> <slrnb3e9ll.6d1.zefram@wolverine.lohacker.net> <slrnb3j5m8.49c.use-userid-in-sig@pepper.viewport.lan> <slrnb472on.149.use-userid-in-sig@pepper.viewport.lan> <slrnb47458.2f3.zefram@wolverine.lohacker.net> <slrnb47os9.1li.tststs@moonlight.tststs.ddns.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.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!news.mailgate.org!nntp.infostrada.it!twister1.libero.it.POSTED!not-for-mail
Newsgroups: news.software.readers
Lines: 33
Reply-To: Emmanuele Bassi <emmanuele.bassi@iol.it>
X-Face: &2.Q,Qgj{KA*q4G%p`*s`1f!hjGTi-9~Ju,L^d#P49tt}?jS(h@;s/K/]gc?bi-9=>%E\6#?o&[Kmng:@W+8W4y6dCuyl?L>k3i7D
User-Agent: slrn/0.9.7.4pl1-eb2 (Linux)
NNTP-Posting-Host: 151.29.199.77
X-Complaints-To: abuse@libero.it
X-Trace: twister1.libero.it 1044661061 151.29.199.77 (Sat, 08 Feb 2003 00:37:41 MET)
NNTP-Posting-Date: Sat, 08 Feb 2003 00:37:41 MET
Organization: [Infostrada]