char-regex
A regex to match any full character, considering weird character ranges.
Last updated 4 years ago by richienb .
MIT · Repository · Original npm
$ cnpm install char-regex 
SYNC missed versions from official npm registry.

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

Current Tags

  • 2.0.0                                ...           latest (4 years ago)

2 Versions

  • 2.0.0                                ...           4 years ago
  • 1.0.2                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (5)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org