I have strings of known (though variable) lengths and I know of the numeric position inside of these strings where I want to replace something (or more specifically append to it). I saw the thread “Replace specific characters at a specific position in a string” but it doesn’t quite do what I’m looking to do.
For example I might have strings
And I know from another mapping that “RED” starts at the 8th position of the first string while “BLUE” starts at the 9th position of the second. I want to now add “old” before each of those colors so that my strings now look like:
I presume I need to use “String Manipulation” for this, but I’m not sure how to tell it to insert something at a given position. I know the “substr” option in there will extract a string by position, but I want to insert something in to a given position. As shown above, the position might be “RED” or “BLUE”, or perhaps something else - I only know the numeric position.