I was wondering why ad\'s still use the document.write approach to inserting the add into the page
To match this with regex and to remove is easy :
but the other is more complex and can be written in different formats.
I think this is the reason.