🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #147397

Re: [slrn] RegEx matching a Message-ID

#147397
From: Lars Stokholm
Date: Sat, 01 May 2004 06:22
20 lines
1901 bytes
J.B. Nicholson-Owens wrote:

>   if (andelse
>         { orelse { string_match (m, "^nntp:", 1) } { string_match (m, "^s?news:", 1) } }
> 	{ string_match (m, ":[^@]+@", 1) }
> 	{ string_match (m, "@[-a-zA-Z0-9.]+",1 ) })
>      { ... it matched ... }

In fact I want to search the entire article for a Message-ID, with
'string_match', and use 'string_match_nth' afterwards to get the exact
position and length of that. The code above will only tell me that
there is a Message-ID, right? - Not the exact location in the string?
But thanks anyway, you couldn't have guessed what I wanted. :)

What would I do if I wanted to match any string that didn't contain
a ']'? Normally I would just use this, I guess: [\]]*

> If you wish, you can check out [...]

I guess I would have to recompile slrn with that module, right?
Technical Details
Message-ID: <slrnc96ghd.1as.lars@stokholm.dyndns.dk>
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.ash.giganews.com!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!0x3ef31032.virnxx2.adsl.tele.DK!not-for-mail
References: <slrnc95dh6.12s.lars@stokholm.dyndns.dk> <c6udi4$71u$06$1@news.t-online.com> <slrnc95rq4.5gt.jbn@forestfield.org>

Show Full Headers
Complete Article Headers
Message-ID: <slrnc96ghd.1as.lars@stokholm.dyndns.dk>
Subject: Re: [slrn] RegEx matching a Message-ID
Date: Sat, 1 May 2004 08:22:37 +0200
From: Lars Stokholm <stokholm@despammed.com>
References: <slrnc95dh6.12s.lars@stokholm.dyndns.dk> <c6udi4$71u$06$1@news.t-online.com> <slrnc95rq4.5gt.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.20140922.mbox.gz!number1.nntp.ash.giganews.com!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!0x3ef31032.virnxx2.adsl.tele.DK!not-for-mail
Newsgroups: news.software.readers
Lines: 20
NNTP-Posting-Host: 0x3ef31032.virnxx2.adsl.tele.dk (62.243.16.50)
X-Trace: news.uni-berlin.de 1083392568 16580701 I 62.243.16.50 ([136857])
X-Uptime: 4 days, 8 hours, 22 minutes, 52 seconds
User-Agent: slrn/0.9.8.0 (Win32)