1 Reply Latest reply on Feb 28, 2008 4:34 AM by Newsgroup_User

    Difficult Keyword Replace Function

      I am trying to figure out a way to markup text results that have a search term in it (see: Google, Yahoo, etc). The problem I'm having with the replacenocase function is that the original text loses its case...which I don't want.

      For example...

      If someone searches for the keyword "coldfusion" and the following text is as follows...

      Original Text

      1. ColdFusion Tutorial

      With Markup

      1. <strong>coldfusion</strong> Tutorial

      Since the user typed in lower case coldfusion...I lose the case when doing a replacenocase function.

      Any way around this without having to do a replace with every possible case combination?