Stripping Emoji from a string

from blog BrettTerpstra.com - The Mad Science of Brett Terpstra, | ↗ original
I often need to strip emoji from strings to prevent them from messing up other handling. I’ve been compiling regular expressions and I think I finally have all the bases covered. This example is in Ruby, but the regular expressions are easy to adapt to any language: strip_emoji.rbraw" #!/usr/bin/env ruby # Remove all emoji from a string,...