romantic
Extract variables from string.
Last updated 5 years ago by kchan .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install romantic 
SYNC missed versions from official npm registry.

romantic Build Status

Extract variables from string.

Install

$ npm install --save romantic

Usage

const Romantic = require('romantic')

const romantic = new Romantic()
const result = romantic.match(
	'hello <name> <age>',
	'hello egoist 21.4'
)
// => {
//   name: 'egoist',
//   age: '21.4'
// }

// define a custom regex pattern to match variables
const romantic = new Romantic(/your regex/g)

License

MIT © EGOIST

Current Tags

  • 0.0.1                                ...           latest (5 years ago)

2 Versions

  • 0.0.1                                ...           5 years ago
  • 0.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (4)
Dependents (2)

Copyright 2014 - 2016 © taobao.org |