This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 400,000 packages pre-installed, including
variation-selector-regex with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
import variationSelectorRegex from 'variation-selector-regex'; variationSelectorRegex(); //=> /([\u180B-\u180D\uFE00-\uFE0F]|\uDB40[\uDD00-\uDDEF])/g
npm install variation-selector-regex
bower install variation-selector-regex
It returns a
RegExp instance that matches all variation selectors in a string.
import variationSelectorRegex from 'variation-selector-regex'; '*☀︎☀️'.match(variationSelectorRegex()); //=> ['\uFE0E', '\uFE0F']
strip-variation-selectors is available under the MIT license.
Copyright (c) 2016 Shinnosuke Watanabe
Licensed under the MIT License.