Hey Tom, Thanks for this. Did give your code a try but something bugged out. Had our master techie look at it and it seems he fixed it by changing the regex. I don’t know much about coding, but his modifications definitely made things work for me so I thought I’d dump the code in here for your readers. Hope this helps anyone who might get stuck! ////CODE function checkLinkBack(url,text) { var counter=0; do{ var response=UrlFetchApp.fetch(url,{muteHttpExceptions:true, method:”GET”, followRedirects:true}); var texR = response.getContentText(); var myRegexp = new RegExp(text,”gi”); var elems = response.getContentText().match(myRegexp); counter++; }while(!Array.isArray(elems) && counter3){return response.getContentText();} var output=[]; for(var i in elems) { if(elems[i].indexOf(text)!=-1){ return true; } } return false; } /////ENDCODE Thanks again, this is awesome! Alex Reply
Hey tom, Not working for me! It marking N/A for every url as well that contains a link of my client. Reply