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?
LVL 2
PanosAsked:
Who is Participating?
 
McOzCommented:
How about:

"onlyLetter":{"regex":/^([^\x00-\x80]|[a-zA-Z\ \'])+$/,
0
 
PanosAuthor Commented:
Hi McOz
It is working.
Thank you
0
 
PanosAuthor Commented:
thank you
regards
panos
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.