See Substitution outside of HTML TAGS or other threads turned up by searchng for 'html tags'.
In reply to RE: Re: looking for a regexp by takshaka in thread looking for a regexp by dan2bit