From: Michel Demazure Date: 2010-06-18T00:38:17+09:00 Subject: Re: nothing new in ruby_core for four days ? Brian Candler wrote: > 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? It was written in a post in this forum (or ruby core) I think from Yusuke Endoh about the coming 1.9.2 release. You have to replace \d by \p{Digit}, and similarly for \s, and the like... Sad perspective. Look at the beautiful example ! RangeReg = /\A(\p{Digit}+|\p{Digit}+\.\.\p{Digit}+)(,\p{Space}*(\p{Digit}+|\p{Digit}+\.\.\p{Digit}+))*\Z/ -- Posted via http://www.ruby-forum.com/.