I need to do a massive replace of Flash object HTML code throughout an entire site. I really don't want to download each page and fix it by hand.
I have the task of fixing the "
Eolas bug" in a small-to-medium sized web site. The fix involves replacing every single instance of 6 lines of embed/object code with the
SWFObject code. I do other site changes in Dreamweaver 8, but I don't think it's up to doing a search and replace in 50 to 100 pages (at least not without downloading and reuploading every page).
I have SSH access to the server, so I believe I can do some sort of regex replace magic - but I only know enough to be dangerous.
Any instructions for replacing HTML code, only in .html files, with other specific code via regular expressions? If there's a better way to do this, Id love to hear that too.
I really, really don't need this to turn into a "oh, regular expressions really
do need the brackets escaped" experience.
Is it always the same flash piece, or will the code differ on a page by page basis?
posted by condour75 at 10:39 AM on January 25, 2007