1.0.2 • Published 6 years ago

extract-data-from-text v1.0.2

Weekly downloads
50
License
MIT
Repository
-
Last release
6 years ago

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 a@domain.com aaa b@domain.com') 
// returns => ['a@domain.com', 'b@domain.com']
string.phones('+1 123 456 789 john john +1 432 456 789') 
// returns => ['+1123456789', '+1432456789']

Test

npm test