🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #112086

Re: [slrn] Problems with multipart/signed PGP messages (Was: Re: *Very* newbie question)

#112086
From: J.B. Nicholson-Owens
Date: Wed, 23 Oct 2002 09:48
31 lines
2507 bytes
Blinky the Shark wrote:
> Does [the S-Lang regular expression engine] support classes like [:alpha:]
> and [:upper:]?

No, I believe those are POSIX regular expression character class shorthands
and those are not currently supported by S-Lang's native regexp engine.  You
can link in another regexp engine if you need those, but it's worth
double-checking your macros for portability if you do.

> Right...  $ for "ending with"; \ to precede a literal, etc.

Yes, but "\" is only required before characters that would otherwise be
metacharacters in that same context:

   \$  is a dollar sign outside a character class.
   [$] is a dollar sign inside a character class.

Also, two things I should have mentioned before:

1. Don't forget to double-up on backslashes inside quoted strings:

   message ("two backslashes: \\\\");   % => "two backslashes: \\"

2. If you need to put a hyphen in a character class, start the class list
with it:

   [aeiou-] might be hyphen and vowels elsewhere but not in S-Lang.
   [-aeiou] definately only hyphen and vowels.

Happy hacking.
Technical Details
Message-ID: <slrnarcscu.53e.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!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!forestfield.ORG!not-for-mail
References: <1034921576.86100.0@iapetus.uk.clara.net> <m2hefkw8sw.fsf@isis.the-vox.com> <tueooa.ts7.ln@ralph> <m2d6q8w4jo.fsf@isis.the-vox.com> <aoq097$p51vn$1@ID-139491.news.dfncis.de> <611qoa.pod.ln@ralph> <aoq50j$ogmhe$1@ID-139491.news.dfncis.de> <slrnar1cng.1at.zefram@wolverine.lohacker.net> <3lgqoa.g5f.ln@ralph> <slrnar2uqc.11o.zefram@wolverine.lohacker.net> <4iosoa.a4n.ln@ralph> <slrnar7oft.rts.jbn@forestfield.org> <ap0pg42163n@enews3.newsguy.com> <slrnaraa4g.tfi.jbn@forestfield.org> <ap3cjf01fhg@enews4.newsguy.com>

Show Full Headers
Complete Article Headers
Message-ID: <slrnarcscu.53e.jbn@forestfield.org>
Subject: Re: [slrn] Problems with multipart/signed PGP messages (Was: Re: *Very* newbie question)
Date: Wed, 23 Oct 2002 09:48:54 +0000
From: "J.B. Nicholson-Owens" <jbn@forestfield.org>
References: <1034921576.86100.0@iapetus.uk.clara.net> <m2hefkw8sw.fsf@isis.the-vox.com> <tueooa.ts7.ln@ralph> <m2d6q8w4jo.fsf@isis.the-vox.com> <aoq097$p51vn$1@ID-139491.news.dfncis.de> <611qoa.pod.ln@ralph> <aoq50j$ogmhe$1@ID-139491.news.dfncis.de> <slrnar1cng.1at.zefram@wolverine.lohacker.net> <3lgqoa.g5f.ln@ralph> <slrnar2uqc.11o.zefram@wolverine.lohacker.net> <4iosoa.a4n.ln@ralph> <slrnar7oft.rts.jbn@forestfield.org> <ap0pg42163n@enews3.newsguy.com> <slrnaraa4g.tfi.jbn@forestfield.org> <ap3cjf01fhg@enews4.newsguy.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!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!forestfield.ORG!not-for-mail
Newsgroups: news.software.readers
Organization: Forest Field OmniMedia
Lines: 30
NNTP-Posting-Host: forestfield.org (208.216.67.173)
X-Trace: fu-berlin.de 1035366534 28059005 208.216.67.173 (16 [35848])
Mail-Copies-To: nobody
User-Agent: slrn/0.9.7.4pl1 (Linux)