Regex (C#): Replace \n with \r\n

前端 未结 7 1799
陌清茗
陌清茗 2020-12-13 18:11

How can I replace lone instances of \\n with \\r\\n (LF alone with CRLF) using a regular expression in C#?

Sorry if it\'s a stupid question, I\'m new to Regex.

7条回答
提交回复
热议问题