View Full Version : Regex Help

09-29-2009, 09:27 PM
Don't know if I'm in the right place, but I'm wondering if anyone here could help me with a problem I'm having.

I am the web designer for a trailer manufacturer, www.miragetrailers.com (http://www.miragetrailers.com), and I have several dozen, if not hundreds, of tables of information that I iframe into each "trailer info page", as in http://www.miragetrailers.com/Cargo/Xtera/5Xtera.htm

On that note, each table is created directly from an excel spreadsheet that we use to create our dealer price books. So, when I save each worksheet as an html file, it embeds styles and id's so that the excel spreadsheet's formatting is retained. I have my own css that I link each sheet to, but in order to do that I have to go into each individual file and remove the content in between the <head></head> tags, and replace it with my own. This is a monument to tedious work. I've successfully created regex's that removed all the individual "class=xl12654987" from each <td> tag, but trying to get one that grabs ALL DATA between the <head></head> tag has literally cooked my brain inside my own skull. Any help on this would be huge. Thank you in advance.