From: matz@... (Yukihiro Matsumoto) Date: 2002-07-10T17:58:35+09:00 Subject: Re: String#split converts string args to regexes -- ? Hi, In message "Re: String#split converts string args to regexes -- ?" on 02/07/10, Stepan Kasal writes: |But there were voices saying that (b) would be useful, since escaping may |be complicated. But alternatively, you could provide something like |Regexp.new_const(s) which would create a regexp matching string s |(ie. no character is interpreted as meta character). I think you can use Regexp.quote for that purpose, i.e. Regexp.new_const(s) = Regexp.new(Regexp.quote(s)) matz.