Remove all emojis from a chunk of text?

bandelero

Member
Hey folks,

Has anyone ever had to use regex or anything else Pabbly supports to remove ALL emojis from a string of text?

Any advice how to navigate?

E
 

amir

Member
I hired ChatGPT and it gave me this code snippet: let str = "[string]"; str = str.replace(/[^\p{L}\p{N}\p{P}\p{Z}]/gu, ''); return(str); . Works like a charm :)

ChatGPT is fantastic - thanks for sharing the ReGex.

I was interested to know the Text String where you applied this ^ regex?
 
Top