This discussion is archived
12 Replies Latest reply: May 1, 2008 2:31 PM by 796440 RSS

getting prob when replacing a word in string. plz help!

807591 Newbie
Currently Being Moderated
Hi everyone,

can any 1 plz help me how to take String(statement) from console and replace with another word.

for eg: if the input string is:"this is a test"
i need to replace the word "is" with "was".

another eg: this is test,how it is.
shud replace is with was or any word

when i was trying, my program is also replacing the is which is in this word but i dont want like this

can any 1 help me out plz
thanks in advance