View Single Post
Old 07-13-2011, 06:02 AM   #18
coldplayplayer
Junior Member
coldplayplayer began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jul 2011
Device: iPad / iPhone
Adding <span> & </span>

I use Notepad++ to edit my XHTML and CSS. Today I did a very similar thing you are asking about I think.

I did a find and replace search like this.

FIND: <p>(.*)</p>
REPLACE: <p><span>\1</span></p>

The (.*) is a wildcard search I believe so it found every instance in my XTHML page that started with <p> had text in between and then ended with </p> and replaced it with the <p><span> and </span></p>.

If you use them, don't forget to add the class after the p, for example <p class="bodytext">(.*)</p>

It worked for me and 99 changes were done in a little under a minute.
coldplayplayer is offline   Reply With Quote