$ cnpm install char-regex
A regex to match any full character, considering weird character ranges. Tested on every single emoji and unicode character. Based on the Lodash implementation.
npm install char-regex
import charRegex from 'char-regex';
'❤️????????'.match(/./);
//=> ['', '', '', '', '', '', '']
'❤️????????'.match(charRegex());
//=> ['❤️', '????????']
Copyright 2013 - present © cnpmjs.org | Home |