From: "Olivier D." Date: 2004-07-07T22:22:41+09:00 Subject: Re: Regexp exercise 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... -- Olivier D.