B
bdwise
I have this value
abcdef
And sometimes I want to replace "b" with "x" and sometimes I want to
replace "f" with "x" and sometimes I want to replace "e" with "x". I
want to replace characters in the string by their position, not their
ASCII content.
What is a common way to do that without using a regex?
abcdef
And sometimes I want to replace "b" with "x" and sometimes I want to
replace "f" with "x" and sometimes I want to replace "e" with "x". I
want to replace characters in the string by their position, not their
ASCII content.
What is a common way to do that without using a regex?