[#3228] Core support for Gems, and namespace — "Luke A. Kanies" <luke@...>

Hi all,

21 messages 2004/07/27
[#3230] Re: Core support for Gems, and namespace — Austin Ziegler <halostatue@...> 2004/07/27

On Tue, 27 Jul 2004 11:39:08 +0900, Luke A. Kanies <luke@madstop.com> wrote:

[#3234] Re: Core support for Gems, and namespace — "Luke A. Kanies" <luke@...> 2004/07/27

On Tue, 27 Jul 2004, Austin Ziegler wrote:

[#3238] Re: Core support for Gems, and namespace — Austin Ziegler <halostatue@...> 2004/07/27

On Wed, 28 Jul 2004 00:14:29 +0900, Luke A. Kanies <luke@madstop.com> wrote:

Re: Trying to understand \G

From: Dave Thomas <dave@...>
Date: 2004-07-17 02:37:00 UTC
List: ruby-core #3201
On Jul 16, 2004, at 21:28, Yukihiro Matsumoto wrote:

> '\G' only works for repeating match methods, String#gsub, String#scan,

Ah - I see. So when using scan, why does the following:

   str = "abcdefg"
   str.scan(/.\G.|../)  #=>  [ ab cd ef ]

not return [ ab bc cd de ef fg] ?

Or, putting it another way, is \G actually useful in #scan?



Cheers

Dave


In This Thread