char-regex
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

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

/char-regex/

    Package Sidebar

    Install

    npm i char-regex

    Weekly Downloads

    22,153,474

    Version

    2.0.1

    License

    MIT

    Unpacked Size

    5.34 kB

    Total Files

    6

    Last publish

    Collaborators

    • richienb