I am wondering how to extract all the emojis from text, then add them to a new column while removing them from the original text - if that makes sense.
For example, consider this data:
ID | Text |
---|---|
1 | This is good |
2 | Loving you so much ❤️ |
3 | You make me sad! |
This is my anticipated output:
ID | Text | Emoji |
---|---|---|
1 | This is good | |
2 | Loving you so much | ❤️ |
3 | You make me sad! |
So far, I have tried this solution, but it has not worked for me, as it does not remove the emoji from the original text.
Any help on how to do this would be great.
Thanks!