将换行替换成" "字符,如下:
代码一:
string strContent = txtNote.Text; strContent = Regex.Replace(strContent, " ", "\n");
代码二:
string strContent = txtNote.Text;
Regex regex = new Regex(" "); strContent = regex.Replace(strContent, "\n");
将换行替换成" "字符,如下:
代码一:
string strContent = txtNote.Text; strContent = Regex.Replace(strContent, " ", "\n");
代码二:
string strContent = txtNote.Text;
Regex regex = new Regex(" "); strContent = regex.Replace(strContent, "\n");