🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #166525

Re: [slrn] Macro to delete block of text

#166525
From: Ian Petts
Date: Tue, 10 May 2005 04:23
16 lines
1547 bytes
On 2005-05-10, W. Citoan <wcitoan@NOSPAM-yahoo.com> wrote:
> strreplace is the wrong function in this case.  It does not use regex so
> you cannot give it a pattern.  Instead, you can use substr is pull out
> the part that you want to keep.
[...]
>       (start, ) = string_match_nth(0);

Aaah, that's the one. Thanks very much.

I'm now trying to work out how to count the number of lines in the
string, so I can delete from X to the end of the text.

I'll keep reading and post a new thread if I get stuck.

Regards,
Ian.
Technical Details
Message-ID: <slrnd80eve.bc1.ipetts@lexx.pettsie.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.20140922.mbox.gz!number1.nntp.ams.giganews.com!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news1.optus.net.au!optus!news.mel.connect.com.au!news-north.connect.com.au!news-south.connect.com.au!duster.adelaide.on.net!not-for-mail
References: <slrnd7vtch.bai.ipetts@lexx.pettsie.net> <slrnd804b3.2cg.wcitoan@wcitoan-via.supernews.com>

Show Full Headers
Complete Article Headers
Message-ID: <slrnd80eve.bc1.ipetts@lexx.pettsie.net>
Subject: Re: [slrn] Macro to delete block of text
Date: Tue, 10 May 2005 04:23:27 +0000
From: Ian Petts <ipetts@gmail.com_no_spam_thanks>
References: <slrnd7vtch.bai.ipetts@lexx.pettsie.net> <slrnd804b3.2cg.wcitoan@wcitoan-via.supernews.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.20140922.mbox.gz!number1.nntp.ams.giganews.com!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news1.optus.net.au!optus!news.mel.connect.com.au!news-north.connect.com.au!news-south.connect.com.au!duster.adelaide.on.net!not-for-mail
Newsgroups: news.software.readers
User-Agent: slrn/0.9.8.1 (Debian)
NNTP-Posting-Host: ppp58-146.lns1.cbr1.internode.on.net
X-Trace: duster.adelaide.on.net 1115700207 59.167.58.146 (10 May 2005 14:13:27
 +0950)
Lines: 16