How to match only Chinese characters in a string?

str= "add column names if there is no file in qwew (()."
for example, this
I just want to take out the Chinese characters

.
>>> str="qwew"
>>> str=re.match(r"\u4e00-\u9fa5",str)
>>> str
>>> str=

Mar.18,2021

match matches from the beginning of the string, using search or findall

-sharp -*- coding:utf-8 -*-

import re

str=u"qwew"
str=re.search(u"[\u4e00-\u9fa5]+",str)
print (str.group())

>>> "qwew".encode('utf-8')
b'qwew\xe9\x87\x8c\xe9\x9d\xa2\xe6\xb2\xa1\xe6\x9c\x89\xe6\x96\x87\xe4\xbb\xb6\xe5\xb0\xb1\xe6\x8a\x8a\xe5\x88\x97\xe5\x90\x8d\xe6\xb7\xbb\xe5\x8a\xa0\xe8\xbf\x9b\xe5\x8e\xbb'

-sharp Python
Menu