🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #166522

Re: [slrn] Macro to delete block of text

#166522
From: Blinky the Shark
Date: Tue, 10 May 2005 03:33
20 lines
1614 bytes
W. Citoan wrote:

>    variable div = "---";
>    variable article="line 1\nline 2\nline 3\n---\nafter1\nafter2\nafter3+end";

>    variable start;

>    if ( string_match(article, div, 1) ) {
>       (start, ) = string_match_nth(0);
>       article = substr(article, 1, start);
>    }

>    printf("%s\n", article);   

I'm at a loss as to a reason for doing this.  Help me out, will you?

-- 
Blinky         Linux Registered User 297263
Killing all Usenet posts from Google Groups
Info:   http://blinkynet.net/comp/uip5.html
Technical Details
Message-ID: <slrnd80at2.97m.no.spam@thurston.blinkynet.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.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!sn-xit-03!sn-xit-08!sn-xit-13!supernews.com!freenix!proxad.net!fr.ip.ndsoftware.net!fu-berlin.de!uni-berlin.de!individual.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: <slrnd80at2.97m.no.spam@thurston.blinkynet.net>
Subject: Re: [slrn] Macro to delete block of text
Date: Tue, 10 May 2005 03:33:55 +0000
From: Blinky the Shark <no.spam@box.invalid>
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.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!sn-xit-03!sn-xit-08!sn-xit-13!supernews.com!freenix!proxad.net!fr.ip.ndsoftware.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
Newsgroups: news.software.readers
Organization: http://blinkynet.net
Lines: 20
X-Trace: individual.net qriMp2SNFEuSKExAMw6zlQn8jelSfNZK3SkvcyENWV2VLc16fF
X-Face: Jb-wQ7r&vrN}~8MC5B09S4&.ieh!Q:Di/XN.xrd#CU%;
 )bPa`Hm^(,3o$n(s75[P+$F+Q^4~Owj`WzkBtZU/#gL2BvEBm/e=/1,R0}d@q@)E
User-Agent: slrn/0.9.8.1 (Linux)