remove unicode emoji using re in python
问题 I tried to remove the emoji from a unicode tweet text and print out the result in python 2.7 using myre = re.compile(u\'[\\u1F300-\\u1F5FF\\u1F600-\\u1F64F\\u1F680-\\u1F6FF\\u2600-\\u26FF\\u2700-\\u27BF]+\',re.UNICODE) print myre.sub(\'\', text) but it seems almost all the characters are removed from the text. I have checked several answers from other posts, unfortunately, none of them works here. Did I do anything wrong in re.compile()? here is an example output that all the characters were