extract-data-from-text
v1.0.2
Published
Extract emails, prices, numbers, geo locations from texts by regular expressions
Downloads
132
Maintainers
Readme
Extract data from text
Extract emails and phones from texts by regular expressions
Installation
Install with npm:
npm install extract-data-from-text --save
API
Example:
var string = require('extract-data-from-text')
string.emails('lorem ipsum [email protected] aaa [email protected]')
// returns => ['[email protected]', '[email protected]']
string.phones('+1 123 456 789 john john +1 432 456 789')
// returns => ['+1123456789', '+1432456789']
Test
npm test