Dear all
I want to substitute every second character of a string (e.g. acustomstring) with a character from another string (hello). The final string should look like this: ahuetlmltoing
Any ideas how this could be done? I used subinstr(s1,s2,s3,n) to match characters but this always replaces the first or more instances of the character and it is problematic.
Thank you.
I want to substitute every second character of a string (e.g. acustomstring) with a character from another string (hello). The final string should look like this: ahuetlmltoing
Any ideas how this could be done? I used subinstr(s1,s2,s3,n) to match characters but this always replaces the first or more instances of the character and it is problematic.
Thank you.
Comment