Remove all emojis from a chunk of text?

Status: Closed · Asked by Evgeny Bik on · 0 views

bandelero — Question ·

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

bandelero — Reply ·

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 :)

amir — Reply ·
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?

Back to all forum threads · Log in to reply