🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #137974

[ Dialog ] Does (?x-g) Work ?

#137974
From: Jeff Relf
Date: Sat, 22 Nov 2003 18:25
43 lines
2854 bytes
Hi  MLC ,  You say :
> You can make the last four even simpler 
>  using the *g* modifier 
>    to switch the operators into non-greedy mode. 
> Therefore you'll have:
> 
> =+98 References {(?-i-g)Relf>(.*>){1}$}
> =+97 References {(?-i-g)Relf>(.*>){2}$}
> =+96 References {(?-i-g)Relf>(.*>){3}$}
> =+95 References {(?-i-g)Relf>(.*>){4}$}

That didn't work .  Is this a bug ?

If I understand the  (?-g)  switch ,
  I'm thinking that it  Should  work .

Another mode that doesn't seem to work for me is (?x)

>From Dialog's help pages :
  dialog.chm::/regularexpressions.htm

<< The default modifier states in 40tude Dialog 
      are "imsg" ("x" is not set). 
...
x   Extend your pattern's legibility 
      by permitting whitespace and comments 
...
It tells the regular expression engine to 
  ignore whitespace that is neither backslashed 
     nor within a character class. 
You can use this to break up your regular expression 
  into (slightly) more readable parts. 
The # character is also treated as a metacharacter 
  introducing a comment, for example: 

   ( 
   (abc) # comment 1 
    | # You can use spaces to format r.e. - 
      #   the r.e. engine ignores it 
   (efg) # comment 2 
   ) 

>>
Technical Details
Message-ID: <ryfly0mwj1k8$.dlg@__.Jeff.Relf>
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!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!border1.nntp.ash.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border3.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed2.netcologne.de!news.netcologne.de!fu-berlin.de!uni-berlin.de!64-40-51-35.ncplus.NET!not-for-mail
References: <tkl091-96r.ln1@news.gates_of_hell.INVALID> <11nx68tkit54h$.dlg@__.Jeff.Relf> <m2ad6pgxn2.fsf@maxqnz.com> <ayuuq25n6bph$.dlg@__.Jeff.Relf> <Xns943AB8CC42F0EZeroOne@news.individual.net> <vktvgaio3url$.dlg@__.Jeff.Relf> <Xns943B28B7A4F7DZeroOne@news.individual.net> <1vskveo0dkd6q.dlg@__.Jeff.Relf> <1536k80hfxwfp.dlg@__.Jeff.Relf> <mdijzwszzai2.dlg@ID-187316.user.uni-berlin.de>

Show Full Headers
Complete Article Headers
Message-ID: <ryfly0mwj1k8$.dlg@__.Jeff.Relf>
Subject: [ Dialog ] Does (?x-g) Work ?
Date: Sat, 22 Nov 2003 10:25:14 -0800
From: Jeff Relf <Me@Privacy.NET>
References: <tkl091-96r.ln1@news.gates_of_hell.INVALID> <11nx68tkit54h$.dlg@__.Jeff.Relf> <m2ad6pgxn2.fsf@maxqnz.com> <ayuuq25n6bph$.dlg@__.Jeff.Relf> <Xns943AB8CC42F0EZeroOne@news.individual.net> <vktvgaio3url$.dlg@__.Jeff.Relf> <Xns943B28B7A4F7DZeroOne@news.individual.net> <1vskveo0dkd6q.dlg@__.Jeff.Relf> <1536k80hfxwfp.dlg@__.Jeff.Relf> <mdijzwszzai2.dlg@ID-187316.user.uni-berlin.de>
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!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!border1.nntp.ash.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border3.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed2.netcologne.de!news.netcologne.de!fu-berlin.de!uni-berlin.de!64-40-51-35.ncplus.NET!not-for-mail
Newsgroups: news.software.readers
Lines: 43
NNTP-Posting-Host: 64-40-51-35.ncplus.net (64.40.51.35)
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de 1069525499 61297403 64.40.51.35 (16 [177113])
User-Agent: 40tude_Dialog/2.0.8.1
X-Face: V|9[5IY]/OB15+<DlkA6*rsaeJb?9HnEE@[CAy1koT:N4Ew'*#35g{6z1>}/e:m!6.qw'Kzn@$#""CJQl/Uv"R,&G?sNO"{#LEEnS3lQRnT#Ql#'3ySQ80}u7Q<`+B@;
 Y; 81AnK'_PD^fm.3T/<-i~YdZ%Q}b?:-]{Lr#s6.N,r(}
X-Newsreader: Win98 C++