From: Nikolay Khodyunya Date: 2010-04-27T23:29:17+09:00 Subject: win32 ruby1.9 regexp and cyrillic string #coding: utf-8 str2 = "asdfМикимаус" p str2.encoding # p str2.scan /\p{Cyrillic}/ #found all cyrillic charachters str2.gsub!(/\w/u,'') #removes only latin characters puts str2 The question is why /\w/ ignore cyrillic characters? I have installed latest ruby package from http://rubyinstaller.org/. Here is my output of ruby -v ruby 1.9.1p378 (2010-01-10 revision 26273) [i386-mingw32] -- Posted via http://www.ruby-forum.com/.