# Does Oniguruma support unicode properties?

**URL:** <https://www.ruby-forum.com/t/does-oniguruma-support-unicode-properties/190055>\
**Category:** Ruby\
**Created:** [June 12, 2010, 4:56am UTC](https://www.ruby-forum.com/t/does-oniguruma-support-unicode-properties/190055 "2010-06-12T04:56:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ntysdd](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/71e660/32.png) [@ntysdd](https://www.ruby-forum.com/u/ntysdd)\
**Post date:** [June 12, 2010, 4:56am UTC](https://www.ruby-forum.com/t/does-oniguruma-support-unicode-properties/190055/1 "2010-06-12T04:56:36Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![ntysdd](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/71e660/32.png) [@ntysdd](https://www.ruby-forum.com/u/ntysdd)\
**Post date:** [June 12, 2010, 5:37am UTC](https://www.ruby-forum.com/t/does-oniguruma-support-unicode-properties/190055/2 "2010-06-12T05:37:29Z")

</div>

On Sat, Jun 12, 2010 at 11:57 AM, Ntys Dd [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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](http://www.geocities.jp/kosako3/oniguruma/doc/RE.txt)

Just make sure your String has correct Unicode encoding.

---

<div class="post-metadata">

**Author:** ![ntysdd](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/71e660/32.png) [@ntysdd](https://www.ruby-forum.com/u/ntysdd)\
**Post date:** [June 12, 2010, 2:44pm UTC](https://www.ruby-forum.com/t/does-oniguruma-support-unicode-properties/190055/3 "2010-06-12T14:44:39Z")

</div>

> > 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](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`.
