From: Albert Schlef Date: 2009-03-10T19:12:40+09:00 Subject: Re: Regexp problem The Higgs bozo wrote: >>> Why? >> >> Because ruby 1.8 does not have look-behind. 1.9 has it, and your code >> runs on 1.9. Thanks for the info, Higgs. Robert Klemme wrote: > Lookbehind is not needed: [snip] > irb(main):002:0> id = url[/id=(\d+)/, 1] > => "12345" Cool! I once knew of the second parameter. Thanks for reminding me of it. I wish I could use RI (too slooouuuw on my system) or Fast-RI (I have it, but at one point it decided to start throwing exceptions). -- Posted via http://www.ruby-forum.com/.