🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #66192

Re: innreport error

#66192
From: Russ Allbery
Date: Thu, 17 Jul 2003 19:37
35 lines
2483 bytes
Steve <steve@nospam-goofer.co.uk> writes:
> Russ Allbery wrote:
>> Jeffrey M Vinocur <jeff@litech.org> writes:

>>> I'm at a loss for why [^{};\"\s]+ wouldn't match the string above,
>>> though.

>> Yeah, that's what's mystifying me.  What version of Perl is this?

> perl-5.8.0-88

> As packaged with Redhat9

Could you try running the following Perl script and tell me what it prints
out?

#!/usr/bin/perl

  $line = 'section default {';
  $line =~ s/^(                  # at the beginning
               [{};]             # match '{', '}', or ';'
              |                  # OR
               \"                # a double quoted string
                (?:\\.|[^\"\\])*
               \"
              |                  # OR
               [^{};\"\s]+       # a word
             )\s*//mox;
  print "$line\n", "$1\n";

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID: <87isq1hrmf.fsf@windlord.stanford.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!news5.aus1.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!cyclone-sf.pbi.net!151.164.30.35!cyclone.swbell.net!newsfeed1.easynews.com!easynews.com!easynews!elnk-pas-nf1!elnk-nf2-pas!newsfeed.earthlink.net!newshub.sdsu.edu!headwall.stanford.edu!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail
References: <bf3jb2$j5s$1@bananasplit.info> <bf5rrq$opb$1@bananasplit.info> <87lluxjgpe.fsf@windlord.stanford.edu> <bf6jhr$62c$1@bananasplit.info> <bf6m2i$l0i$1@puck.litech.org> <8765m1jbmy.fsf@windlord.stanford.edu> <bf6rat$841$1@bananasplit.info>

Show Full Headers
Complete Article Headers
Message-ID: <87isq1hrmf.fsf@windlord.stanford.edu>
Subject: Re: innreport error
Date: Thu, 17 Jul 2003 12:37:12 -0700
From: Russ Allbery <rra@stanford.edu>
References: <bf3jb2$j5s$1@bananasplit.info> <bf5rrq$opb$1@bananasplit.info> <87lluxjgpe.fsf@windlord.stanford.edu> <bf6jhr$62c$1@bananasplit.info> <bf6m2i$l0i$1@puck.litech.org> <8765m1jbmy.fsf@windlord.stanford.edu> <bf6rat$841$1@bananasplit.info>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!news5.aus1.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!cyclone-sf.pbi.net!151.164.30.35!cyclone.swbell.net!newsfeed1.easynews.com!easynews.com!easynews!elnk-pas-nf1!elnk-nf2-pas!newsfeed.earthlink.net!newshub.sdsu.edu!headwall.stanford.edu!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Lines: 35
NNTP-Posting-Host: windlord.stanford.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news.Stanford.EDU 1058470632 13893 171.64.19.147 (17 Jul 2003
X-Complaints-To: news@news.stanford.edu
User-Agent: Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.4 (Common Lisp, linux)
Cancel-Lock: sha1:MmDcUHt9Ug1zMziztldkApcdZeI=