推荐关注
Meteor
JSLint - a JavaScript code quality tool
jsFiddle
D3.js
WebStorm
推荐书目
JavaScript 权威指南第 5 版
Closure: The Definitive Guide
timqian
10.02D

reg-match-arr: Find regExp matched item array of given string

  •  
  •   timqian · Jun 2, 2016 · 2226 views
    This topic created in 3636 days ago, the information mentioned may be changed or developed.

    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', ',' ] ] 
    

    github repo

    npm addr

    用到的 es6/7-npm-package-starter

    https://github.com/ProjecToday/npm-starter

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   944 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 18:52 · PVG 02:52 · LAX 11:52 · JFK 14:52
    ♥ Do have faith in what you're doing.