string-match
v1.0.0
Published
return first match or empty string
Downloads
12
Readme
string-match
return first match or empty string
Install
$ npm install --save string-match
Usage
var stringMatch = require('string-match');
stringMatch('foo bar', /[bc]ar/);
// => bar
CLI
$ npm install --global string-match
$ string-match --help
return first match or empty string
Example
string-match "foo bar" /[bc]ar/
=> bar
License
MIT © Matias Singers