Programming i html: How can I check if variable contains Chinese/Japanese characters? on newest questions tagged html – Stack Overflow

How do I check if a variable contains Chinese or Japanese characters? I know that this line works:

if (document.body.innerText.match(/[\u3400-\u9FBF]/))

I need to do the same thing not for the document but for a single variable.

See Answers


source: http://stackoverflow.com/questions/11206443/how-can-i-check-if-variable-contains-chinese-japanese-characters
Programming i html: programming-i-html



online applications demo