Cyrilic (Russian) characters input

  • Thread starter Thread starter Martin.Kunc
  • Start date Start date
M

Martin.Kunc

Hallo all,
I need to make an textbox to accept only Cyrilic characters. I
couldn't found any solution except enumerate characters for filtering
(seems odd). Please has anyone any ideas ?

Thank you all,
Martin
 
Basically, that's what you need to do. Even the numeric text boxes do that.
It captures the input, if it's numeric (or Cyrilic in your case) then it
appends it...if not, it's dropped.
 
* (e-mail address removed) wrote, On 24-5-2007 21:59:
Hallo all,
I need to make an textbox to accept only Cyrilic characters. I
couldn't found any solution except enumerate characters for filtering
(seems odd). Please has anyone any ideas ?

If there is a Unicode shortcut or unicode-character range (0x0400
through 0x04FF )of these characters you could use regular Expressions to
look this up.

^[\u0400-\u04FF]*$

Or
^\p{Cyrillic}+$

Or
^\P{Cyrillic}+$

You might want to try each of these options, my Cyrillic is a bit rusty
(none existent). You can either handle the keydown event or use a
validator to check the textbox after the user has entered his text.

Jesse
 
There are only 33 Cyrillic characters... 66 with capitals, not really that
hard to enumerate.

At least you are not dealing with Chinese!
 
Hallo all,
thank you for answers,
Finally we are using method with Unicode Range checking + additional
enumarations (space, numbers, etc.)

Thank you again,

Martin

Ashot Geodakov napsal:
 

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

Back
Top