Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Find and Replace Help

Find and Replace Help

Find and Replace Help


I'm trying to convert several Word documents into HTML.  To save time, I thought I'd convert them all to html format from within Word and then do an Extended Find and Replace on all the tags to remove the attributes.

The problem is that almost every tag has unique attributes, so I'd like to use wildcards but nothing I've tried seems to work - i.e.:
Find: <td*>
(to find something like <td width=295 valign=top style='width:221.5pt;border:solid black 1.0pt;
  border-left:none;padding:0cm 5.4pt 0cm 5.4pt;height:15.0pt'>)
Replace with: <td>

Has anyone had any success with anything like this?

Thanks in advance!


RE: Find and Replace Help

I don't work with Word's HTML formatting, but is there a reason you cannot do the search and replace in Word itself? The extended search options include "Use wildcards". The search is case-sensitive, however, so you might have to search for <td *> and <TD *>. Of course, generated html should be in a consistent case.

RE: Find and Replace Help

Hey mdwyer - thanks for answering!

I have tried that before and the results were unpredictable.  For instance, it would seem to skip tags that spaned more than one line.

I'm getting Office 2003 soon though - maybe it'll be better.  I remember this way did work the best!


RE: Find and Replace Help

Things are pretty quiet in this group.

What about using <td *^p*> to search for the 2-line tags? And <td *^p*^p*> for 3-line, etc. That's just a guess, but I suspect there is some limit to the wildcard search. O2003 would probably do the same.

RE: Find and Replace Help

Thanks for answering mdwyer! Sorry I took so long to respond - just back from holidays today :(

This morning, I downloaded a trial version of Dreamweaver and I already see much more functionality than I had with Homesite (not surprisingly - but I am amazed at all the options!).

This looks like it may help a lot - you can search for just specific tags with certain attributes set to specific values!  I've already tested some of it but am still can't speak of all it can do.


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close