Article View: news.software.readers
Article #50474slrn: how do I match "["?
From: Mike Mulvaney
Date: Mon, 09 Aug 1999 00:00
Date: Mon, 09 Aug 1999 00:00
16 lines
973 bytes
973 bytes
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? Thanks, Mike mikemulvaney@excite.com
Technical Details
Message-ID:
<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-mailShow Full Headers
Complete Article Headers
Message-ID: <slrn7qsr8i.h6i.mike@zorak.milkmen> Subject: slrn: how do I match "["? Date: Mon, 09 Aug 1999 00:00:00 +0000 From: mike@asdf.asdf (Mike Mulvaney) 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: 510487697 Organization: Posted via Supernews, http://www.supernews.com User-Agent: slrn/0.9.5.4 (UNIX) Newsgroups: news.software.readers X-Complaints-To: newsabuse@supernews.com