char-regex

A regex to match any full character, considering weird character ranges.


Keywords
character, regex, match, split, length
License
MIT
Install
npm install char-regex@2.0.1

Documentation

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