From: Simon Strandgaard Date: 2004-02-12T21:09:58+09:00 Subject: Re: (noob) cast string to array? On Thu, 12 Feb 2004 12:59:21 +0100, Robert Klemme wrote: > "Simon Strandgaard" schrieb im Newsbeitrag >> >> result.sub!(/\{/,'[') >> result.sub!(/\}/,']') >> >> Above can be chained, so it becomes >> >> result.sub!(/\{/,'[').sub!(/\}/,']') > > I always feel unconfortable chaining (g)sub! since the result here *may* > be nil. > [snip] I am curious to when 'nil' may be returned? -- Simon Strandgaard