Avatar ·

Remove all emojis from a string

📁 Advanced Python Topics

Suppose we have a string:

""???????????????????????????‍??‍??‍❤‍?‍?????✋??? What a beautiful day!""

How can we remove all emojis from this string and get only the clean text as output:

""What a beautiful day!""

Also, the emojis can be completely different, not necessarily the ones in the string.