I need to be able to go through a string and replace various items (not always the same ones).
Most of the time the string is likely to have text of more than one colour, which I must not change.
It would only ever be one char at a time that would need to be replaced.
In the case I have before me, every instance of "{" needs to be replaced with "[".
Likewise, every instance of "}" needs to be replaced with "]" , all without disturbing whatever colour the original chars had.
So that I don't keep pestering people here, is there any way of generalising this so I can just alter the "find" and "replace with" items accordingly.
In other words, I suppose I'm after a char by char version of the normal Replace function, that doesn't change formatting.
As always, help much appreciated.
Staggers.
Bookmarks