regexp property under windows

N

Ntys Dd

though properties of regexp under Linux is OK,ruby under windows doesn't
support that.
such as /\p{Han}/,
you will always get an error.

irb(main):001:0> /\p{Han}/
SyntaxError: (irb):1: invalid character property name {Han}: /\p{Han}/
from C:/Ruby192/bin/irb:12:in `<main>'

will anyone explain this?

i use ruby 1.9.2p0 (2010-08-18) [i386-mingw32]
 
L

Luis Lavena

though properties of regexp under Linux is OK,ruby under windows doesn't
support that.
such as /\p{Han}/,
you will always get an error.

irb(main):001:0> /\p{Han}/
SyntaxError: (irb):1: invalid character property name {Han}: /\p{Han}/
        from C:/Ruby192/bin/irb:12:in `<main>'

will anyone explain this?

i use ruby 1.9.2p0 (2010-08-18) [i386-mingw32]

That seems a bug.

Ruby Regexp is bundled by Ruby, not depending on 3rd party libraries
that could have affected it's compilation

If no other answer shows up that explain this, please create a bug
report in Ruby Redmine installation:

http://redmine.ruby-lang.org/

And provide enough information about your setup, specially if you
compiled Ruby or downloaded binaries.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top