Author: Hiteshkumar | Posted on: 4/13/2009 12:19:03 AM | Views : 495


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 ...