Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

NPM Badge

Install

npm install char-regex

Usage

import charRegex from "char-regex"

"β€οΈπŸ‘ŠπŸ½".match(/./)
//=> ["", "", "", "", "", "", ""]

"β€οΈπŸ‘ŠπŸ½".match(charRegex())
//=> ["❀️", "πŸ‘ŠπŸ½"]

API

charRegex()

Related

About

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

Resources

License

Code of conduct

Packages

No packages published