View Single Post
Old 03-10-2013, 09:56 AM   #3
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
Tex2002ans --

1. Thanks for the answer -- works great

2. And thanks for the explaination. Helps me to understand

3. And now .... a slight change to requirements

My fault -- your S&R works perfectly but it also changes things like this.

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

into

Code:
<!DOCTYPE html PUBLIC "-//W3C//<span class="incaps">DTD XHTML</span> 1.1//EN"
  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
I can use the [Find/Replace] button if I have to, but it is a little tedious

I exerpimented with RegEx changes using !(<!) but no joy.

I also tried a 2 pass approach: your S&R, and then another S&R to un-do the

Code:
<span class="incaps">DTD XHTML</span>
Is it possible to avoid changing things like the example in the first place??


Paul
phossler is offline   Reply With Quote