How to split emoji from each other python?
I need to split emoji from each other for example EM = 'Hey 😷😷😷' EM.split() If we split it we will have ['Hey' ,'😷😷😷'] I want to have ['hey' , '😷' , '😷' , '😷'] and I want it to be applied to all emojis. You should be able to use get_emoji_regexp from the https://pypi.org/project/emoji/ , together with the usual split function . So something like: import functools import operator import re import emoji em = 'Hey 😷😷😷' em_split_emoji = emoji.get_emoji_regexp().split(em) em_split_whitespace = [substr.split() for substr in em_split_emoji] em_split = functools.reduce(operator.concat, em_split