Project

General

Profile

Actions

Bug #2822

closed

Russian characters are missing from word characters types in Regexp

Added by stas (Stas Senotrusov) over 12 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
ruby -v:
ruby 1.9.2dev (2010-02-27 trunk 26772) [i686-linux]
Backport:
[ruby-core:28354]

Description

=begin
"Hello".match(/[\w]*/)
=> #<MatchData "Hello">

"Привет".match(/[\w]*/)
=> #<MatchData "">

"Привет".match(/[А-Яа-яЁё\w]*/)
=> #<MatchData "Привет">

Non word character type \W behaves similar.
=end

Actions

Also available in: Atom PDF