in reply to Re: Regex For Removing Emoji
in thread Regex For Removing Emoji

Sample input 🦂 🍷✨⛓ 🔪🐷 ⏳🎣 Shows full color icons in firefox and chrome, white only in IE and some of the icons in Safari, also white only.

Replies are listed 'Best First'.
Re^3: Regex For Removing Emoji
by LanX (Saint) on Nov 12, 2016 at 14:59 UTC
    Better dump the $text your application handles, before and after applying the regexes.

    I suspect the data you are processing doesn't look like it is supposed to do. (Probably Html escaped)

    Anyway, in general providing us with a complete test script showing input and output would help you and us.

    Often errors are spotted by the authors when preparing a post like this.

    Cheers Rolf
    (addicted to the Perl Programming Language and ☆☆☆☆ :)
    Je suis Charlie!

    Fwiw, for those interested the monastery transforms the provided emojis 🍷✨⛓ 🔪🐷 ⏳🎣 into 🍷✨⛓ 🔪🐷 ⏳🎣  within code blocks

      Thanks, I didn't realise it was getting converted to decimal somewhere along the way. Sorted now.
      Fwiw, for those interested the monastery transforms the provided emojis [...] within code blocks

      Actually, it is your browser that is doing that (when you submit the form). Just FYI.

      - tye