Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Using stringreplace without changing case

2 views
Skip to first unread message

cayci dmer

unread,
Jul 26, 2006, 12:10:55 PM7/26/06
to
Hi,
I want to make a case-insesitive replace, while preserving the case.
For example, let stringreplacexxx be the function that does what I
want:

ostr:='The quick brown fox jumped over another FoX';
tc:='fox';
nstr:=stringreplacexxx(ostr,tc,'<b>'+tc+'</b>');

So at last ostr will be; 'The quick brown <a>fox</a> jumped over
another <a>FoX</a>'

I could not achieve this with stringreplace, it gives me; 'The quick
brown <a>fox</a> jumped over another <a>fox</a>'. Is there smart way to
accomplish this?

0 new messages