Wondering what’s next for npm?Check out our public roadmap! »

    char-regex
    TypeScript icon, indicating that this package has built-in type declarations

    2.0.0 • 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.

    NPM Badge

    Install

    npm install char-regex

    Usage

    import charRegex from "char-regex"
    
    "❤️👊🏽".match(/./)
    //=> ["", "", "", "", "", "", ""]
    
    "❤️👊🏽".match(charRegex())
    //=> ["❤️", "👊🏽"]

    API

    charRegex()

    Related

    Install

    npm i char-regex

    DownloadsWeekly Downloads

    7,279,410

    Version

    2.0.0

    License

    MIT

    Unpacked Size

    4.51 kB

    Total Files

    6

    Last publish

    Collaborators

    • avatar