Link to home
Start Free TrialLog in
Avatar of Panos
PanosFlag for Germany

asked on

Jquery validation - regex greek text

Hello experts.
I'm using jquery validation plugin (http://www.position-absolute.com/)
The problem i have is to validate greek text.(allow greek text to pass the validation)
The plugin has  the regex for only letters:
"onlyLetter":{ "regex":/^[a-zA-Z\ \']+$/,
 "alertText":"* Only text allowed"},

I tried this one:
"onlyLetter":{"regex":/^[^\x00-\x80]+$/,
(from here:http://stackoverflow.com/questions/150033/regular-expression-to-match-non-english-characters)
This does not allow english(latin) letters.
Any help?
ASKER CERTIFIED SOLUTION
Avatar of McOz
McOz

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Panos

ASKER

Hi McOz
It is working.
Thank you
Avatar of Panos

ASKER

thank you
regards
panos