From: Katz Bo Date: 2009-12-20T20:37:42+09:00 Subject: Re: Regex question 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 -- Posted via http://www.ruby-forum.com/.