Created
January 18, 2019 11:10
-
-
Save GreatBahram/ee8ea0677c09353d99c1a124e591ee0a to your computer and use it in GitHub Desktop.
Positive and negative emoji regex detection (Not unicode ones!)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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