Regular Expression help
am 26.04.2007 21:26:19 von RobHi,
I need to convert our word documents to html for our website. I've used
MS Word's "Save as HTML" feature and ran "Microsoft Office HTML Filtrer
2.0" to clean up the code but I am stuck with a lot of additional code
and I want to write a script that will do a custom cleanup.
The Word document has a "Table of Contents" and when I convert, I get
links at the top of my page that link to the appropriate section but I
get code like this:
name="_Toc58980987">
name="_Toc58981749">
name="_Toc93973545">
name="_Toc126114863">
I get a whole bunch of empty anchor tags each with a different name and
only the last anchor tag is correct. I would like to use regular
expressions to remove all empty "a" tags.
I know how to use regular expressions with ASP 3.0 but I don't know the
pattern.
Does anyone know the regex.pattern to replace all empty tags with an
empty string?
Thanks
Rob
*** Sent via Developersdex http://www.developersdex.com ***