Pattern = re.compile(u'[\u4e00-\u9fa5]+') if Pattern.search(searchstring): # do something else: # do something