Skip to content

Instantly share code, notes, and snippets.

@GreatBahram
Created January 18, 2019 11:10
Show Gist options
  • Save GreatBahram/ee8ea0677c09353d99c1a124e591ee0a to your computer and use it in GitHub Desktop.
Save GreatBahram/ee8ea0677c09353d99c1a124e591ee0a to your computer and use it in GitHub Desktop.
Positive and negative emoji regex detection (Not unicode ones!)
import re
POSITIVE_EMOJI_RE = re.compile(r"[;:=]-?[\)|D]+")
NEGATIVE_EMOJI_RE = re.compile(r"[:=]-?[\(]+")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment