So you have to split up the string into sections:
text$ = "This is my sentence to change."
word1$ = "my"
word2$ = "your"
find = INSTR(text$, word1$)
start$ = LEFT$(text$, find - 1)
ending$ = RIGHT$(text$, LEN(text$) - (find + LEN(word1$) - 1))
PRINT start$ + word2$ + ending$
Return to Index