Hi All,

I need help to write a script to detect ads in a html page. Suppose I have a html page and I have the list of all the links from whcih ads are posted and the regular expression which has the pattern of the ads, can you help me with a script which detests the ads and saves the ads in a file.

I am new to java scripts so can you please give me some idea or code snippet which can help me.