Hi,
Here i've written a small code which replace the values in the string based on the Regex Pattern.
String strFileContent='<name></name><address></address>'
String inputPattern=txtInput.Text
String ReplaceWith=txtReplace.Text;
string str = Regex.Replace(strFileContent,inputPattern,ReplaceWith); Match m=Regex.Match(strFileContent,"\n");
sr.Close();
sw = Go to the complete details ...