Project

General

Profile

Actions

Bug #3838

closed

regexp for unicode property under windows

Added by ntys (ding ding) over 14 years ago. Updated over 13 years ago.

Status:
Rejected
Target version:
ruby -v:
ruby 1.9.2p0 (2010-08-18) [i386-mingw32]
Backport:
[ruby-core:32419]

Description

=begin
•Ruby 1.9.2-p0 RubyInstaller (md5: 21bf42f7ec4b8a831c947d656509cddb) Stable version

such regexp will cause an error: /\p{Lu}/

irb(main):002:0> /\p{Han}/
SyntaxError: (irb):2: invalid character property name {Han}: /\p{Han}/
from C:/Ruby192/bin/irb:12:in <main>' irb(main):003:0> /\p{Lu}/ SyntaxError: (irb):3: invalid character property name {Lu}: /\p{Lu}/ from C:/Ruby192/bin/irb:12:in '
irb(main):004:0>

while this is all right: /\p{Alpha}/

irb(main):001:0> /\p{Alpha}/
=> /\p{Alpha}/
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0