关于用notepad++确认代码中\r\n\t空格等不显示的字符及替换
如圖,CRLF就是不可見的,點擊箭頭指向能顯示所有字符
?
Replace "\n" with new line characters, using Notepad++
In case you have a file which contains “escaped” new lines (\n), like this:
and you want to replace the escaped new line sequences with actual new line characters, you can easily accomplish this task using?Notepad++.
First load your file (or just copy paste the text) in Notepad++.
and you want to replace the escaped new line sequences with actual new line characters, you can easily accomplish this task using?Notepad++.
First load your file (or just copy paste the text) in Notepad++.
Then select Search → Replace from the menu, or hit Ctrl-H. The Replace dialog will show up. Therein make sure that you fill out the following values;?Find what:?\\n?(yes,?two?back-slashes),?Replace with:?\n?(yes, just one back-slash), and the most important, make sure you select the?Extended (\n, \r, \t, \0, \x, …)?radio button. Your Replace dialog must look like this:
Click the Replace All button, and all escaped new line sequences will be replaced with new line characters:
I hope this helped!
This entry was posted in?Uncategorized. Bookmark the?permalink.
←?PHP Extensions do not load on fresh WAMP installation
How to go off the record in Gmail when "Go off the record" is grayed?→
76 Responses to?Replace "\n" with new line characters, using Notepad++
?
參考鏈接:
https://blog.csdn.net/weixin_40886648/article/details/95335485
https://blog.csdn.net/yanchenyu365/article/details/83214778
這塊我參照上面兩個鏈接,將nc要發送的文件(http請求)中的CRLF替換成了LF。
如下圖:
?
創作挑戰賽新人創作獎勵來咯,堅持創作打卡瓜分現金大獎總結
以上是生活随笔為你收集整理的关于用notepad++确认代码中\r\n\t空格等不显示的字符及替换的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 【C语言】时间操作,把1970年开始秒数
- 下一篇: Git warning: LF will