Skip to content

Instantly share code, notes, and snippets.

@saleehk
Created June 7, 2017 12:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save saleehk/2e7bea978e74618991cf26b57fb7cfba to your computer and use it in GitHub Desktop.
Save saleehk/2e7bea978e74618991cf26b57fb7cfba to your computer and use it in GitHub Desktop.
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