human
Detecting non-ascii characters in unicode string
assistant
Here is some code to get all non-ascii characters in a unicode string `\xa3100 is worth more than \u20ac100`

print(re.sub('[\x00-\x7f]', '', '\xa3100 is worth more than \u20ac100'))

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.