char-regex

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

MIT 6 个版本
安装
npm install char-regex
yarn add char-regex
pnpm add char-regex
bun add char-regex
README

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());
//=> ['❤️', '👊🏽']
版本列表
2.0.2 2024-11-20
2.0.1 2022-02-15
2.0.0 2021-06-04
1.0.2 2020-02-18
1.0.1 2020-01-31
1.0.0 2020-01-31