After googeling alot I still have no found the answer that I am looking for .. Hopefully you guys can point me into the right direction.
Currently I have a working app using Android Studio which allows me to replace a word from user input to another word, basically a if else function. However, this won't allow me replace a whole sentence.
What I am trying to achieve is:
I want to have a text field where a user can input a text.
For example, the user types: "Hello, I am John Doe and I like chocolate"
The user the submits his entry using a send button. I then want a function which replaces only a certain word(s) within his input.
For example, I want a function that replaces the word "chocolate" with "milk".
So that the user gets a return from the system, saying: "Hello, I am John Doe and I like milk". But I also want it to replace words in between words. For example, I also want the function the replace the name "John" with "Mary".
Which function can I use to achieve this scenario?
Thanks for reading.
Glenn