The thoughts, work and ideas of Liam Dempsey

Liam Dempsey header image 2

Converting bold tags to strong tags with find/replace

July 10th, 2008 · 3 Comments

Recently, I had to update the code on a website that I made several years ago. The process included, among other tasks, converting all the <b> and <i> tags to <strong> and <em>. After playing around with the it for a while, I determined that the most efficient way to find and replace the old tags with the new ones was to do a search for b>, and then to replace it with a strong>.

screen shot of a Find/Replace dialogue box

By seaching for the b>, I avoided having to sift through all occassions of the letter b in the source code and content. The same would hold true for the <i> tag: simply search for i> and replace with em>

Tags: Web design

3 responses

  • 1 Meg // Jul 10, 2008 at 8:18 pm

    *sigh* If only I had thought to search out the find/replace function in SAS before now…

    thanks for that tip!

  • 2 Liam Dempsey // Jul 10, 2008 at 9:24 pm

    Hi Meg -

    Thanks for visiting and for the comment. What’s SAS? I’ve not heard of it before.

  • 3 Meg // Jul 15, 2008 at 7:43 am

    It’s a statistical analysis software that we use at work for the large datasets we often deal with. (Are you familiar with SPSS by any chance? It’s basically the same thing except Windows based (’point ‘n click’) instead of DOS based like SAS.) It has its own coding scheme, as well as being able to handle SQL language.

    In short, it’s a pain in the butt.

Leave a Comment