Next Perpendicular Moonlanding

    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

    Install

    npm i char-regex

    DownloadsWeekly Downloads

    14,056,328

    Version

    2.0.1

    License

    MIT

    Unpacked Size

    5.34 kB

    Total Files

    6

    Last publish

    Collaborators

    • richienb