I have a string.....<BR><BR>zpString = "<font color=#000000 size=1>This is a line with the word font and <font size=2>(font) in brackets</font>, and also, font after and font, before a comma. the word fonts doesn't get replaced. It should also work with the word color</font>"<BR><BR>Let's say I want to make the word "font" bold in the text.<BR><BR>How can I do a search and replace for "font" (as a whole word rather than part of a word eg. fonts) converting it to <b>font</b> using Regular Expressions without converting the occurrences of "font" in the HTML tags?<BR><BR>The same must work for "color". ie. the search/replace will only be done on text OUTSIDE of any HTML tags.<BR><BR>ie. Replace all occurences of a specified string in the source string with another specified string, if the particular occurence of the specified string is not within HTML tags.<BR><BR>Any help would be much appreciated!