I have a text like this:
let text = ":wink: Is that true? :like: I never heard about that, as I know some country like: VN, Indonesia, ThaiLan".
:wink: and :like: is code to display emoji. Now i use split to covert into array like this:
const myArray = text.split(':')
and result:
myArray = ["", "wink", " Is that true? ", "like", " I never heard about that, as I know some country like", " VN, Indonesia, ThaiLan"]
as you can see, character ':' is gone, how to keep ':' when covert from text to array, in this case my expect the result should be:
myArray = [":wink:", " Is that true? ", ":like:", " I never heard about that, as I know some country like:", " VN, Indonesia, ThaiLan"]