From: Dan Zwell Date: 2007-05-04T11:19:05+09:00 Subject: Re: Is there a better way to do this? > def sform( str, fmt ) > ary = str.split(//) > fmt.gsub( /0/ ){ ary.shift } > end > > Yeah, that's much simpler. I like it. Dan