Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

readme.md 930B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. # execall [![Build Status](https://travis-ci.org/sindresorhus/execall.svg?branch=master)](https://travis-ci.org/sindresorhus/execall)
  2. > Find multiple RegExp matches in a string
  3. Instead of having to iterate over `RegExp#exec`, immutable, and with a nicer result format.
  4. ## Install
  5. ```
  6. $ npm install execall
  7. ```
  8. ## Usage
  9. ```js
  10. const execall = require('execall');
  11. execall(/(\d+)/g, '$200 and $400');
  12. /*
  13. [
  14. {
  15. match: '200',
  16. subMatches: ['200'],
  17. index: 1
  18. },
  19. {
  20. match: '400',
  21. subMatches: ['400'],
  22. index: 10
  23. }
  24. ]
  25. */
  26. ```
  27. ## API
  28. ### execall(regexp, string)
  29. Returns an `object[]` with a match, sub-matches, and index.
  30. #### regexp
  31. Type: `RegExp`
  32. Regular expression to match against the `string`.
  33. #### string
  34. Type: `string`
  35. ## Related
  36. - [replace-string](https://github.com/sindresorhus/replace-string) - Replace all substring matches in a string
  37. ## License
  38. MIT © [Sindre Sorhus](https://sindresorhus.com)