Skip to content

Instantly share code, notes, and snippets.

@pjambet
Created March 13, 2015 20:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pjambet/4c6c88a0424e1f7a6012 to your computer and use it in GitHub Desktop.
Save pjambet/4c6c88a0424e1f7a6012 to your computer and use it in GitHub Desktop.
"💩".gsub(/([\u{2600}-\u{26FF}]|[\u{1F000}-\u{1F8FF}]|[\u{2300}-\u{23FF}])/, "")
ref:
http://stackoverflow.com/questions/24672834/how-do-i-remove-emoji-from-string/24673322#24673322
http://en.wikipedia.org/wiki/Unicode_block
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment