Evaluate escaped string

前端 未结 5 686
-上瘾入骨i
-上瘾入骨i 2021-01-13 06:50

I have some strings in a file that are already escaped. So the content of the file looks like this:

Hello\\nWorld. This is\\tGreat.

When I

5条回答
  •  Happy的楠姐
    2021-01-13 07:19

    Try this:

    String replaced = startstring.Replace(System.Environment.NewLine, desirevalue);
    

    This have to be valid only for "\n".

提交回复
热议问题