Click here to Skip to main content
15,945,119 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends,

i have a string like that

Dear (FName) (MName) (LName)
your transaction number is (TranNo)

i want to read above string whenever i will get tag (FName) and etc,then i will replace this tag to xml node parameter

so my issue is that how can i read the above string and read tag and replace with xml parameter node

Thanks in advance

Mohd. Faizan khan
Updated 10-Apr-12 19:08pm

1 solution

you can do something like this by using replace function:
string str = "Dear (FName) (MName) (LName) your transaction number is (TranNo)";
                   str = str.Replace("(FName)", "NewVAlue");

Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900