Thursday, 14 February 2013

string replace all space and new line

//space with line 
string mm=  Regex.Replace(yourSting, @"\s", "");


//new line
            string ttt = Regex.Replace(yourSting, @"\t|\n|\r", "");

No comments:

Post a Comment

How to highlight selected text in notepad++

  –> To highlight a block of code in Notepad++, please do the following steps step-1  :- Select the required text. step-2  :- Right click...