From: Ntys Dd on
Well,when i want to use property in the regexp,ruby does complain that
bad property,but i never find any good property it accepts.Now i have a
question,does it support unicode property,such as \p{Han}??Or is it just
dummy?
--
Posted via http://www.ruby-forum.com/.

From: Michael Fellinger on
On Sat, Jun 12, 2010 at 11:57 AM, Ntys Dd <ntysdd(a)gmail.com> wrote:
> Well,when i want to use property in the regexp,ruby does complain that
> bad property,but i never find any good property it accepts.Now i have a
> question,does it support unicode property,such as \p{Han}??Or is it just
> dummy?

http://www.geocities.jp/kosako3/oniguruma/doc/RE.txt

Just make sure your String has correct Unicode encoding.

--
Michael Fellinger
CTO, The Rubyists, LLC.

From: Run Paint Run Run on
>> Well,when i want to use property in the regexp,ruby does complain that
>> bad property,but i never find any good property it accepts.Now i have a
>> question,does it support unicode property,such as \p{Han}??Or is it just
>> dummy?

I put together http://redmine.ruby-lang.org/repositories/entry/ruby-19/doc/re.rdoc
which explains the supported properties. If you've got a recent build
of 1.9, it's accessible as `ri Regexp`.