From: Robert Klemme Date: 2009-12-20T21:45:12+09:00 Subject: Re: Regex question On 20.12.2009 12:37, Katz Bo wrote: > Katz Bo wrote: >> Same for me. I actually had tried what you tried too. Also, {2,2} won't >> work either. > > Sorry for double posting, post too quick. > Yet another thing is, {1} works: > > /(lo){1}x/ =~ 'lololox' # => 4 > /(lo){2}x/ =~ 'lololox' # => nil > /(lo){3}x/ =~ 'lololox' # => nil That's definitively a bug! => http://redmine.ruby-lang.org/ Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/