char-regex (1.0.2)

Published 2026-02-24 13:53:55 +00:00 by atheaadmin

Installation

registry=
npm install char-regex@1.0.2
"char-regex": "1.0.2"

About this package

Char Regex Travis CI Build Status

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 Badge

Install

npm install char-regex

Usage

const charRegex = require("char-regex");

"❤️👊🏽".match(/./);
//=> ["", "", "", "", "", "", ""]

"❤️👊🏽".match(charRegex());
//=> ["❤️", "👊🏽"]

API

charRegex()

Dependencies

Development Dependencies

ID Version
@babel/core ^7.8.4
@babel/plugin-proposal-unicode-property-regex ^7.8.3
array-uniq ^2.1.0
ava ^3.0.0
emoji.json ^12.1.1
eslint-config-richienb ^0.3.0
unicode-chars ^1.0.1
xo ^0.25.3

Keywords

character regex match split length
Details
npm
2026-02-24 13:53:55 +00:00
0
Richie Bendall
MIT
2.4 KiB
Assets (1)
Versions (2) View all
1.0.2 2026-02-24
2.0.2 2026-02-24