Article View: news.software.readers
Article #50489Re: slrn: how do I match "["?
From: Heikki Kantola
Date: Mon, 09 Aug 1999 00:00
Date: Mon, 09 Aug 1999 00:00
22 lines
1711 bytes
1711 bytes
Mike Mulvaney <mike@asdf.asdf> informed news.software.readers with the following: >I'm pretty used to regexps in perl and grep, but I am having a problem >in s-lang. I am trying to match the character "[", and I can't get it >to work. I tried \[, which gives me some error messages. > ^ >Here is the line: > > n = string_match(str, "/[", 1); > ^ >Slrn tells me there is an illegal parameter. How can I do this? By pressing wrong key perhaps? :) The \-escape works fine at least on my score file... -- Heikki "Hezu" Kantola, <Heikki.Kantola@IKI.FI> L�hett�m�ll� mainoksia tai muuta asiatonta s�hk�postia yll� olevaan osoitteeseen sitoudut maksamaan oikolukupalvelusta FIM500 alkavalta tunnilta.
Technical Details
Message-ID:
<slrn47qu58i.pug.hezu@tuuri.ling.helsinki.fi>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!not-for-mailReferences:
<slrn7qsr8i.h6i.mike@zorak.milkmen>Show Full Headers
Complete Article Headers
Message-ID: <slrn47qu58i.pug.hezu@tuuri.ling.helsinki.fi> Subject: Re: slrn: how do I match "["? Date: Mon, 09 Aug 1999 00:00:00 +0000 From: Heikki Kantola <hezu@iki.fi> References: <slrn7qsr8i.h6i.mike@zorak.milkmen> 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!not-for-mail X-Deja-AN: 510732148 Content-Transfer-Encoding: 8bit Mail-Copies-To: nobody Content-Type: text/plain; charset=iso-8859-1 X-Complaints-To: usenet@news.helsinki.fi X-Trace: oravannahka.helsinki.fi 934221074 27935 128.214.78.4 (9 Aug 1999 17:51:14 GMT) Organization: Department of General Wizardry, Unseen University, Ankh-Morpork User-Agent: slrn/0.9.5.7 (UNIX) Mime-Version: 1.0 NNTP-Posting-Date: 9 Aug 1999 17:51:14 GMT Newsgroups: news.software.readers