[#1816] Ruby 1.5.3 under Tru64 (Alpha)? — Clemens Hintze <clemens.hintze@...>

Hi all,

17 messages 2000/03/14

[#1989] English Ruby/Gtk Tutorial? — schneik@...

18 messages 2000/03/17

[#2241] setter() for local variables — ts <decoux@...>

18 messages 2000/03/29

[ruby-talk:02271] Re: Multiple assignment of pattern match results.

From: schneik@...
Date: 2000-03-30 18:19:48 UTC
List: ruby-talk #2271

Hi,

Yukihiro Matsumoto wrote:
>     on 00/03/30, schneik@us.ibm.com <schneik@us.ibm.com> writes:
>
> |The only problem I have with this example is that scan is going through
the
> |work of producing an array of arrays, even though I only want the first
> |match:
>
> a)
>
>   x="aabbbccccdddeeeefffabcdeabcdeabcde"
>   (dummy, t, u, v) = /(a+)[^ace]*(c+)[^e]*(e+)/.match(x).to_a

That's good news.

Hmm, how could I have missed this?

Can't seem to find a match for a match method anywhere in the Ruby 1.4
Reference Manual.

Conrad Schneiker
(This note is unofficial and subject to improvement without notice.)


In This Thread

Prev Next