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());
//=> ['❤️', '👊🏽']

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
npm
2026-02-24 13:53:55 +00:00
0
Richie Bendall
MIT
latest
2.4 KiB
Assets (1)
Versions (2) View all
1.0.2 2026-02-24
2.0.2 2026-02-24