Using JavaScript to check whether a string contains Japanese characters (including kanji)
Check whether this works or not. I found this website that seems to list all the characters in Unicode that might be used in Japanese text. The corresponding regex (for single character) would be: /[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/ ————-_____________————-_____________————-_____________ Punctuation Hiragana Katakana Full-width CJK CJK Ext. A Roman/ (Common & (Rare) Half-width Uncommon) Katakana The ranges are (as … Read more