I'm looking to replace a specific word in my program with a repetition asterixes.
Here is my current function: Word is the word being replaced.
mystring = tbText.text
mystring = Replace(mystring, word, "***", 5, 1)
The issue here is the fact that mystring returns just the replaced word rather than returning the entire string, reasoning for this being, the word at index 5 and ending in index 10 is only being returned due to the minimum index and maximum index set.
Is there another function I can use to replace the specific word while returning the entire string with the word replaced?