Article View: news.software.readers
Article #121527Re: [slrn] scoring on subject in replies
From: J.B. Nicholson-Owens
Date: Sat, 08 Mar 2003 20:35
Date: Sat, 08 Mar 2003 20:35
29 lines
1763 bytes
1763 bytes
Allodoxaphobia wrote:
> KISS:
> Score: =-9999
> Subject: x.?news
Do you really want to match "xynews" or "xxnews"? I think it would be
simpler to match an optional hyphen "x-?news", but that depends on what one
is trying to match.
> Anyway, I think you would've needed to escape the "-", as it
> is used in some RE constructs.
Where would you need to escape a hyphen in an S-Lang regular expression?
Perhaps you were thinking of the location of a hyphen in a character class
("[-az]" is not the same as "[a-z]"), but this requires no escaping:
(I'm using a caret on the following line to indicate the highlighted
characters)
$ echo abc | rgrep -h '[-az]*'
abc
^
$ echo abc | rgrep -h '[a-z]*'
abc
^^^
rgrep comes with jed, a text editor that uses S-Lang.
Technical Details
Message-ID:
<slrnb6kmmh.a5p.jbn@forestfield.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!fu-berlin.de!uni-berlin.de!forestfield.ORG!not-for-mailReferences:
<3e69f26f@news.starnetinc.com> <slrnb6k7t4.12h.nobody@animas.frontier.net>Show Full Headers
Complete Article Headers
Message-ID: <slrnb6kmmh.a5p.jbn@forestfield.org> Subject: Re: [slrn] scoring on subject in replies Date: Sat, 08 Mar 2003 20:35:24 +0000 From: "J.B. Nicholson-Owens" <jbn@forestfield.org> References: <3e69f26f@news.starnetinc.com> <slrnb6k7t4.12h.nobody@animas.frontier.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!fu-berlin.de!uni-berlin.de!forestfield.ORG!not-for-mail Newsgroups: news.software.readers Organization: Forest Field OmniMedia Lines: 28 NNTP-Posting-Host: forestfield.org (208.216.67.173) X-Trace: fu-berlin.de 1047155724 66023182 208.216.67.173 (16 [35848]) Mail-Copies-To: nobody User-Agent: slrn/0.9.7.4pl2 (GNU/Linux)