char-regex (2.0.2)
Published 2026-02-24 13:53:55 +00:00 by atheaadmin
Installation
registry=npm install char-regex@2.0.2"char-regex": "2.0.2"About this package
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
Dependencies
Development Dependencies
| ID | Version |
|---|---|
| all-chars | ^1.0.0 |
| ava | ^6.2.0 |
| tsd | ^0.31.2 |
| xo | ^0.59.3 |
Keywords
character
regex
match
split
length
Details
Assets (1)
Versions (2)
View all
char-regex-2.0.2.tgz
2.4 KiB