Nothing Particularly Magnificent

    reg-match-arr

    0.0.1 • Public • Published

    Find regExp matched item array of given string

    install

    $ npm i reg-match-arr
    

    usage example:

    import regMatchArr from 'reg-match-arr'
    const str = 'hi, i am timqian, 600, 564, 112'
    const regExp = /(\d{3})(,)/ig
    regMatchArr(str, regExp) // [ [ '600', ',' ], [ '564', ',' ] ]

    Keywords

    none

    Install

    npm i reg-match-arr

    DownloadsWeekly Downloads

    3

    Version

    0.0.1

    License

    MIT

    Last publish

    Collaborators

    • timqian