help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] [bug] (a RegexResults) at: n throws error if captur


From: Holger Hans Peter Freyther
Subject: Re: [Help-smalltalk] [bug] (a RegexResults) at: n throws error if captured at n is empty string
Date: Sat, 7 Dec 2013 19:10:08 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

On Fri, Dec 06, 2013 at 03:47:24PM -0700, sergio wrote:

Hi!


 data := 'word1 "" word3'.
 (data =~ '(\w+) "([^"]*)" (\w+)') printString

is already enough to re-produce the issue. For some reason registers
contains three intervals and the second one is an empty one.

 st> (match instVarNamed: #registers) second inspect
 An instance of Interval
   start: 8
   stop: 7
   step: 1
   contents: [
   ]
 Interval()

I have not worked much with the regexp code. The issue already appears
with GST 3.2. Could you check if you can find a working version of GST?


thanks
        holger



reply via email to

[Prev in Thread] Current Thread [Next in Thread]