theninjamanz 29 Posted January 17, 2011 Report Share Posted January 17, 2011 I scrape a webpage add this to a list. What i want to do is to be able to replace completely the data found within a meta-description tag with my own. However this value changes each time a page loads, and could be different across the different sites depending on the way the tag has been written. Therefore is there a way that I can use the $replace function using a wildcard to say Replace all the text found between these tags in a webpage with X. An example might be <DIV> </DIV> I am having problems with this. ThanksNinjaman Quote Link to post Share on other sites
pftg4 102 Posted January 17, 2011 Report Share Posted January 17, 2011 there is a way use regex Pftg4 Quote Link to post Share on other sites
theninjamanz 29 Posted January 17, 2011 Author Report Share Posted January 17, 2011 there is a way use regex Pftg4 cheers, found a way. Scrape the element to a list, then set to parameter, then use the $replace using that scraped item as the replace item. cheers. Quote Link to post Share on other sites
botbie 0 Posted February 10, 2011 Report Share Posted February 10, 2011 hi, i could not get it.Could you attach the sample file for review? Thank you Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.