From: Brian Candler Date: 2010-06-17T23:17:49+09:00 Subject: Re: nothing new in ruby_core for four days ? Michel Demazure wrote: > I switched sometime ago to 1.9 and my app now uses ordered hashes and > enumerators. Certainly there are cool new features in 1.9, and apparently improved speed. But these are outweighed for me by the total mess which is encodings. > But > 1.9.2 implies (or is it 1.9.x ?) - alas poor Yorick! - changing > Regexp's : \d, \s,\w and the like work no more with utf-8 encodings! Care to share an example, or point to a blog with more details? I have an older 1.9.2 lying around, it doesn't seem to behave how you describe. >> RUBY_DESCRIPTION => "ruby 1.9.2dev (2009-07-18 trunk 24186) [i686-linux]" >> a = "groß 123 über" => "groß 123 über" >> a.encoding => # >> a =~ /(\d+)/ => 5 >> $1 => "123" >> a =~ /(\w+)/ => 0 >> $1 => "groß" -- Posted via http://www.ruby-forum.com/.