Created
June 7, 2017 12:17
-
-
Save saleehk/2e7bea978e74618991cf26b57fb7cfba to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var request = require("request"); | |
var options = { | |
method: 'GET', | |
url: '{URL_HERE}', | |
}; | |
request(options, function (error, response, body) { | |
if (error) throw new Error(error); | |
var test = body.match(new RegExp('{Regular Exp here}','g')) | |
console.log(test); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment