Skip to content

cigolpl/extract-data-from-text

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Extract emails, prices, numbers, geo locations from texts by regular expressions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published