string-matching

1.11.15 • Public • Published

string-matching

Checks strings against patterns and collects matched substrings


var assert = require('assert')
var match = require('string-matching').match

var d = {}
assert(match('mailto:!{username}@!{domain}', 'mailto:popeye@thimbletheater.com', d))
console.dir(d) // { username: 'popeye', domain: 'thimbletheater.com' }


Package Sidebar

Install

npm i string-matching

Weekly Downloads

3

Version

1.11.15

License

MIT

Unpacked Size

43.9 kB

Total Files

10

Last publish

Collaborators

  • mayama