Article View: news.software.readers
Article #147371[slrn] RegEx matching a Message-ID
From: Lars Stokholm
Date: Fri, 30 Apr 2004 20:25
Date: Fri, 30 Apr 2004 20:25
10 lines
1372 bytes
1372 bytes
I'm trying to write a regular expression to be used in a macro, that will match a Message-ID, but I'm not having much luck. I'm really having trouble escaping characters with backslash (I can't even escape a single dot). So I have two questions for you: 1) Can you come up with anything better than this(?): news:[^ >]+ You probably can. :) 2) How do I escape a ')' in S-Lang? This won't work: string_match(article,"news:[^ >\)]+",1);
Technical Details
Message-ID:
<slrnc95dh6.12s.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!newsfeed.arcor.de!newsfeed.arcor-online.net!fu-berlin.de!uni-berlin.de!0x3ef31032.virnxx2.adsl.tele.DK!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <slrnc95dh6.12s.lars@stokholm.dyndns.dk> Subject: [slrn] RegEx matching a Message-ID Date: Fri, 30 Apr 2004 22:25:10 +0200 From: Lars Stokholm <stokholm@despammed.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.ash.giganews.com!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!nntp.giganews.com!newsfeed.arcor.de!newsfeed.arcor-online.net!fu-berlin.de!uni-berlin.de!0x3ef31032.virnxx2.adsl.tele.DK!not-for-mail Newsgroups: news.software.readers Lines: 10 NNTP-Posting-Host: 0x3ef31032.virnxx2.adsl.tele.dk (62.243.16.50) X-Trace: news.uni-berlin.de 1083356721 16955340 I 62.243.16.50 ([136857]) X-Uptime: 3 days, 22 hours, 25 minutes, 33 seconds User-Agent: slrn/0.9.8.0 (Win32)