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-regexUsage
import charRegex from "char-regex"
"β€οΈππ½".match(/./)
//=> ["", "", "", "", "", "", ""]
"β€οΈππ½".match(charRegex())
//=> ["β€οΈ", "ππ½"]API
charRegex()
Related
- string-length - Get the real length of a string
