RegEx Unicode Character

Hello,

I am using regexp to match unicode(arabic) character but it is not
working
code:
# encoding: utf-8
Chars = String[0..-1]
words = Chars[/\p{Word}/,1]

but I am having nothing in the array
Is there a way to solve this problem
I am using Ruby 1.9.2

regards

···

--
Posted via http://www.ruby-forum.com/.

-----Messaggio originale-----

···

Da: rubix Rubix [mailto:aggouni2002@yahoo.fr]
Inviato: mercoledì 16 novembre 2011 23:29
A: ruby-talk ML
Oggetto: RegEx Unicode Character

Hello,

I am using regexp to match unicode(arabic) character but it is not working
code:
# encoding: utf-8
Chars = String[0..-1]
words = Chars[/\p{Word}/,1]

but I am having nothing in the array
Is there a way to solve this problem
I am using Ruby 1.9.2

regards

--
Posted via http://www.ruby-forum.com/.

--
Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP autenticato? GRATIS solo con Email.it http://www.email.it/f

Sponsor:
Capodanno a Riccione, Pacchetto Relax: Mezza Pensione + bagno turco + solarium + massaggio. Wifi e parcheggio gratis. 2 giorni euro 199 a persona
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid977&d)-12