Find and replace with wildcards
Hello all. I'm new to Dreamweaver, and I've tried to find the answer on my question, but to no avail.
I am looking to use Find and Replace to delete extraneous code not needed in the projects I am working on. Even though this is specifically having to do with bolding text, I'm not sure how to approach it because of the variables needed.
An example would be this:
<span style="font-family: Arial, sans-serif;
mso-fareast-font-family: 'Times New Roman';
mso-font-kerning: 18.0pt; mso-bidi-font-weight: bold;
font-weight: bold;">ABCD</span>
would need to be changed to this:
<span style="font-weight: bold;">ABCD</span>
Or this:
<span style="line-height: 115%;
font-family: Arial, sans-serif; font-weight: bold;">ABCD</span>
to:
<span style="font-weight: bold;">ABCD</span>
The problem I'm having is to somehow make sure that if font-style: is included in the style, it is not omitted. E.g.
<span style="font-weight: bold; font-style: italic;">
In this case, I would need the search string to be able to leave the italicized formatting. Would anyone have any ideas? Maybe a replace string that leaves all instances of font-weight and font-style? If it helps at all, these pages have already been developed in RoboHelp. But with over 13,000 pages, it would take a while to do it all by hand.
