title: How to specify Regexp for unicode cyrillic characters in Ruby 1.9
body: <pre><code>#coding: utf-8
  str2 = "asdfМикимаус"
  p str2.encoding #&lt;Encoding:UTF-8&gt; 
  p str2.scan /\p{Cyrillic}/ #found all cyrillic characters
  str2.gsub!(/\w/u,'') #removes only latin characters
  puts str2
  </code></pre>
  
  <p>The question is why <code>\w</code> ignore cyrillic characters?</p>
  
  <p>I have installed latest ruby package from <a href="http://rubyinstaller.org/" rel="nofollow noreferrer">http://rubyinstaller.org/</a>. 
  Here is my output of <code>ruby -v</code></p>
  
  <pre><code>ruby 1.9.1p378 (2010-01-10 revision 26273) [i386-mingw32]
  </code></pre>
  
  <p>As far as i know 1.9 oniguruma regular expression library has full support for unicode characters.</p>