[#3109] Is divmod dangerous? — Dave Thomas <Dave@...>

14 messages 2000/06/06

[#3149] Retrieving the hostname and port in net/http — Roland Jesse <jesse@...>

Hi,

12 messages 2000/06/07

[#3222] Ruby coding standard? — Robert Feldt <feldt@...>

16 messages 2000/06/09

[#3277] Re: BUG or something? — Aleksi Niemel<aleksi.niemela@...>

> |I am new to Ruby and this brings up a question I have had

17 messages 2000/06/12
[#3281] Re: BUG or something? — Dave Thomas <Dave@...> 2000/06/12

Aleksi Niemel<aleksi.niemela@cinnober.com> writes:

[#3296] RE: about documentation — Aleksi Niemel<aleksi.niemela@...>

> I want to contribute to the ruby project in my spare time.

15 messages 2000/06/12

[#3407] Waffling between Python and Ruby — "Warren Postma" <embed@...>

I was looking at the Ruby editor/IDE for windows and was disappointed with

19 messages 2000/06/14

[#3410] Exercice: Translate into Ruby :-) — Jilani Khaldi <jilanik@...>

Hi All,

17 messages 2000/06/14

[#3415] Re: Waffling between Python and Ruby — Andrew Hunt <andy@...>

>Static typing..., hmm,...

11 messages 2000/06/14

[#3453] Re: Static Typing( Was: Waffling between Python and Ruby) — Andrew Hunt <andy@...>

32 messages 2000/06/16

[#3516] Deep copy? — Hugh Sasse Staff Elec Eng <hgs@...>

Given that I cannot overload =, how should I go about ensuring a deep

20 messages 2000/06/19

[#3694] Why it's quiet — hal9000@...

We are all busy learning the new language

26 messages 2000/06/29
[#3703] Re: Why it's quiet — "NAKAMURA, Hiroshi" <nahi@...> 2000/06/30

Hi,

[#3705] Re: Why it's quiet — matz@... (Yukihiro Matsumoto) 2000/06/30

Hi,

[ruby-talk:03303] Re: dev.rubycentral.com

From: Aleksi Niemel<aleksi.niemela@...>
Date: 2000-06-12 15:02:07 UTC
List: ruby-talk #3303
Me:
> There's some "normal" :) trash at
> http://dev.rubycentral.com/ref/ref_c_matchingdata.html 

And I:

Maybe I should've tested first and then write, but I was and still am a
little bit in hurry - even if you can't notice it :).

Dave's example for MatchData.[] 

  m = /(.)(.)(\{}d+)(\{}d)/.match("THX1138.")

returns nil on my Win (rbdj144) environment. I was wondering for a while why
you have (\{}d+) and then I got it. Maybe it belongs to the same class as
other Latex environments :). Haven't seen such regexp anyway.

Well, then I tried

ruby> m=/(.)(.)(\d+)(\d)/.match("THX1138.")
#<MatchingData:0x246a00>
ruby> m[0]
""
ruby> m[0,5]
[nil]

and now I really wonder what's going on. I thought it should act now as
[]-example code. 

Ruby regexps seemed to be better than others, but since I couldn't use them
in few minutes, I can't regard them as high anymore :).

	- Aleksi

In This Thread

Prev Next