Skip to content

Instantly share code, notes, and snippets.

@mathiasbynens
Last active August 29, 2015 14:07
Show Gist options
  • Save mathiasbynens/7ac574488e8c1a00eaf9 to your computer and use it in GitHub Desktop.
Save mathiasbynens/7ac574488e8c1a00eaf9 to your computer and use it in GitHub Desktop.
[\x80-\uD7FF\uDC00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF]
var regenerate = require('regenerate');
var set = regenerate()
// Add all code points that require at least 2 bytes in UTF-8.
.addRange(0x80, 0x10FFFF);
console.log(
set.toString()
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment