char-regex
v2.0.2
Published
A regex to match any full character, considering weird character ranges.
Downloads
110,425,753
Maintainers
Readme
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.
Install
npm install char-regex
Usage
import charRegex from 'char-regex';
'❤️👊🏽'.match(/./);
//=> ['', '', '', '', '', '', '']
'❤️👊🏽'.match(charRegex());
//=> ['❤️', '👊🏽']
Related
- string-length - Get the real length of a string