View Single Post
Old 07-22-2011, 12:18 AM   #21
coldplayplayer
Junior Member
coldplayplayer began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jul 2011
Device: iPad / iPhone
Quote:
If my code already contains a class, and reads for eg:

<p class="bodycenter"><span>text text text</span></p>

Is there a way to adjust and use this find/replace methodology?
I think I get what you're asking. In this case you want to search like this:

<p class="bodycenter"><span>(.*)</span></p>

I just tried it in Notepad++ and it worked. Basically you are just telling it to find each individual instance of code that starts with <p class="bodycenter"><span> and ends with </span></p>.

So I guess could say it is a more refined search than the original one I posted up and probably a good thing to remember. Otherwise if you already had a line of code like you suggested, the original find and replace method would produce the following result:

<p class="bodycenter"><span><span>text text text</span></span></p>

Does this help you out?
coldplayplayer is offline   Reply With Quote