Click here to Skip to main content
15,667,904 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
Posted
Updated 10-Apr-12 19:08pm
v2

1 solution

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



Thanks
 
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