 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
cayci dmer Guest
|
Posted: Wed Jul 26, 2006 9:10 pm Post subject: Using stringreplace without changing case |
|
|
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? |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|