From: Hugh Sasse Staff Elec Eng Date: 2002-07-10T18:57:04+09:00 Subject: Re: String#split converts string args to regexes -- ? On Wed, 10 Jul 2002, Yukihiro Matsumoto wrote: > sub/gsub > > (a) prohibit string pattern > (b) string patterns as strings, without converting into regex. > > split > > (c) prohibit string pattern longer than 1. > (d) string patterns as strings, without converting into regex. > > The meaningful consistent combination must be a-c and b-d. Which do > you prefer? > I'd go for (b) and (d) as well, but notes in the docs about Regexp.new(Regexp.quote(s)) would be a useful cross-reference to have in the split and g?sub sections, as well. If there were another way to quote backslashes http://www.rubycentral.com/faq/rubyfaq-9.html#ss9.18 I'd vote for that, too! > matz. > Thank you, Hugh