From: "Aleksi Niemelä" Date: 2000-06-12T17:02:07+02:00 Subject: [ruby-talk:03303] Re: dev.rubycentral.com 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.") # 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