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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.1
    3,446,928
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.1
    3,446,928
  • 2.0.0
    68,536
  • 1.0.2
    19,026,314
  • 1.0.1
    2
  • 1.0.0
    1

Package Sidebar

Install

npm i char-regex

Weekly Downloads

22,541,781

Version

2.0.1

License

MIT

Unpacked Size

5.34 kB

Total Files

6

Last publish

Collaborators

  • richienb