Click here to Skip to main content
14,391,726 members
Rate this:
Please Sign up or sign in to vote.
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 20:08pm
v2

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

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");



Thanks
   

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




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100