how to replace a word in a string using c sharp

Posted by Sahoo under C# on 12/27/2011 | Points: 10 | Views : 700 | Status : [Member] | Replies : 1

I have a paragralike

dear @*******,

i welcome u all to solve my probleam.........................

I want to replace @*****, with a name say jitendra
note @*****, is a word of any lenth and in any language.S
o we have to use index of @ and , to replace text within it.

thanks in advance.


Posted by: Ivlnr on: 12/27/2011 [Member] Starter | Points: 25

If the template is in fixed format, just take beside words also along with replaceable string and replace it.

Sahoo, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response