I have a multilingual website (Chinese and English).
I like to validate a text field (name field) in javascript. I have the following code so far.
var c
You might check out Javascript + Unicode regexes and do some research to find exactly which ranges of characters you want to allow:
See What's the complete range for Chinese characters in Unicode?
After reading those two and a little extra research you should be able to find appropriate values to complete something like: /^[-'a-z\u4e00-\u9eff]{1,20}$/i