Solution: http://stackoverflow.com/questio... Ruby 1.9. has \w mapped to [A-Za-z0-9_], use \p{Word}