Hi,
I want to replace "\n" with "!" in c#, i tried this:
and it worked, but this didnt:
why?
I want to replace "\n" with "!" in c#, i tried this:
Code:
String buffer=richTextBox.Text; buffer=buffer.Replace(@"\n", "!");
Code:
String buffer=richTextBox.Text; buffer = Regex.Replace(buffer, @"\n", "!");
Comment