From: "David A. Black" Date: 2004-07-07T22:27:30+09:00 Subject: Re: Regexp exercise Hi -- On Wed, 7 Jul 2004, Olivier D. wrote: > On 2004-07-07, ts wrote: > >>>>>> "O" == Olivier D writes: > > > >O> value = string[/b: \d+/][/\d+/] > > > > value = string[/b: (\d+)/, 1] > > > > Guy Decoux > > Wonderful, exactly the "hacker's way" I was looking for. > This feature is not on the (rather old) documentation I was looking at. > I think it's time for me to dig into Ruby's source code... You'll find this documented in ri. (Not that I want to discourage you from looking at the source too :-) David -- David A. Black dblack@wobblini.net