From: "Jan E." Date: 2012-06-08T19:11:51+09:00 Subject: Re: Best way to partition a string "IƱaki Baz Castillo" wrote in post #1063634: > 2012/6/7 cyber c. : > Regexp.new(/^([a-zA-Z]+)(.+)$/).match(str).captures Why are you using Regexp.new, when /^([a-zA-Z]+)(.+)$/ already *is* a Regexp? This seems nonsensical to me, like String.new("abc"). -- Posted via http://www.ruby-forum.com/.