I have a Unicode string in Python. I am looking for a way to determine if there is any Chinese/Japanese character in the string. If possible it'll be better to be able to locate those characters.
It seems this is a bit different from a language detection problem. My string can be a mixture of English and Chinese texts.
My code has Internet access.
You can use this regex [\u2E80-\u9FFF] to match CJK characters.
Is there a way to know whether a Unicode string contains any Chinese/Japanese character in Python?