next-multiple-exec
Multiple exec for regexp.
installation
npm install -S @feizheng/next-multiple-exec
usage
import '@feizheng/next-multiple-exec';
const re = /\${{(.*?)}}/g;
const str = '${{ GITHUB_API_TOKEN }} - ${{ afei }}';
nx.multipleExec(re, str); // [ ' GITHUB_API_TOKEN ', ' afei ' ]
license
Code released under the MIT license.