28 Oct 2011 2:14 AM #1
Answered: Regular expression for Alt Gr
Hi I want to add áéíóú characters in my textfield along with albhabets and spaces
maskRe : /([a-zA-Z\s]+)$/, for my textfield please let me know which regex to be used for these spacila characters as well ?
28 Oct 2011 6:46 AM #2
maskRe is run against a single character, as it is typed. Your existing regex is quite a bit more complicated than it needs to be, the (), + and $ are all unnecessary.
For the accented characters, have you tried just adding those characters to your character class (the thing surrounded with square brackets)? If that doesn't work, try escaping them in the form \uXXXX to avoid any character encoding problems.
28 Oct 2011 7:20 AM #3
28 Oct 2011 7:26 AM #4
I tried above which I showed last post but didnt work.
how to use \uXXXX
28 Oct 2011 7:28 AM #5
I used this way /([a-zA-Z\s]+)$\uXXXX/,
but didnt work..!!
28 Oct 2011 7:37 AM #6
28 Oct 2011 8:22 PM #7