From: Florian Gross Date: 2007-06-17T05:14:22+09:00 Subject: Re: Ruby Changes Its Mind About Non-Word Characters > > % iconv <<< 'p "�recode�" =~ /\brecode\b/' -f utf-8 -t iso-8859-1|ruby > > 1 > > % ruby <<< 'p "�recode�" =~ /\brecode\b/' -KU > Which one is "wrong"? I'd view � and � as the same kind of punctuation as ". So it's not a letter. And \b should match at letter <> non-letter boundaries. Looks like Ruby is wrong. Note that Ruby also allows you to use all kind of Unicode punctuation in variable names. It just treats everything it doesn't know anything about as lowercase letters AFAIK. I'm not sure if there is an easy way of fixing it.