Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var regex = /<td.*?><a class="flag flag-([a-z]{2})" href=".*?">AS(\d+)<\/a>(.*?)<\/td>[\s\S].*<td.*?>([\d,]+)<\/td>/gmi;
- var str = document.body.innerHTML;
- var m,a=[];
- while ((m = regex.exec(str)) !== null) {
- // This is necessary to avoid infinite loops with zero-width matches
- if (m.index === regex.lastIndex) {
- regex.lastIndex++;
- }
- //console.log (m[2],m[3],m[1],m[4].replace(/,/g,''));
- a.push([m[2],m[3],m[1],m[4].replace(/,/g,'')].join("\t"));
- }
- document.body.innerHTML="";var pre=document.createElement("pre");pre.innerHTML=a.join("\n");document.body.appendChild(pre);
- // https://ipinfo.io/hosting/1
Add Comment
Please, Sign In to add comment