次の文字列を指定します。
"hello %{one} there %{two} world"
このコードは機能しません:
s = "hello %{one} there %{two} world"
r = Regexp.new(/(%{.*?})+/)
m = r.match(s)
m[0] # => "%{one}"
m[1] # => "%{one}" 
m[2] # => nil  # I expected "%{two}"
しかし、Rubularでは、同じ正規表現が機能し、 and(%{.*?})を返します。%{one}%{two}
私は何を間違っていますか?