I have a list of strings that basically represent unicode emojis, e.g.:
emoji[0] = 'U+270DU+1F3FF'
I would like to convert this "almost" unicode emoji representation to its true emoji representation so that I can search through text documents that contain these emojis, e.g.:
emoji[0] = emoji[0].replace('U+', '\U000')
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 0-4: truncated \UXXXXXXXX escape
How can I accomplish that?