From: Ntys Dd on 11 Jun 2010 22:57 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 11 Jun 2010 23:37 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 12 Jun 2010 08:44 >> 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`.
|
Pages: 1 Prev: unicorn 0.990.0 - inching towards 1.0 Next: require command problem |