Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import re
- try:
- # UCS-4
- EMOTICON = re.compile(u'(([\U00002600-\U000027BF])|([\U0001f300-\U0001f64F])|([\U0001f680-\U0001f6FF]))')
- except Exception, e:
- # UCS-2
- EMOTICON = re.compile(u'(([\u2600-\u27BF])|([\uD83C][\uDF00-\uDFFF])|([\uD83D][\uDC00-\uDE4F])|([\uD83D][\uDE80-\uDEFF]))')
- NOT_EMOTICON = re.compile(r'(\\U([0-9A-Fa-f]){8})|(\\u([0-9A-Fa-f]){4})')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement