Project

General

Profile

Actions

Bug #2822

closed

Russian characters are missing from word characters types in Regexp

Added by stas (Stas Senotrusov) about 14 years ago. Updated almost 13 years ago.

Status:
Closed
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

Like0
Like0Like0