Skip to content

Instantly share code, notes, and snippets.

@NakedMoleRatScientist
Created March 15, 2019 01:09
Show Gist options
  • Save NakedMoleRatScientist/c996bf01e3fb847a4279c55d9bdda9ef to your computer and use it in GitHub Desktop.
Save NakedMoleRatScientist/c996bf01e3fb847a4279c55d9bdda9ef to your computer and use it in GitHub Desktop.
get_id = function(data)
{
var match_string = /id:/;
var lines = data.split("\n");
for (var i = 0; i < lines.length; i++)
{
if (lines[i].match(match_string))
{
var components = lines[i].split("\"");
console.log(components[1]);
console.log("beep");
console.log("bop");
//return components[1]);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment