Add a character ) to the end of every lines in Notepad++

断了今生、忘了曾经 提交于 2019-12-23 12:34:25

问题


I'd like to add the ) character (close bracket) to the end of all lines.

I see CR is the end symbol of every lines. (Menu > View > Show Symbol > Show end of line)

I tried to replace \r with )\r in Regular expression mode but it didn't work.

How do I do this?


回答1:


Use $ to match end of line in regular expression mode. Replace with \(, slash is to escape




回答2:


You need to match extended or regular expression and replace "\n" with ")\n". At least this worked by me so far. According to this there can be differences though Difference between CR LF, LF and CR line break types?



来源:https://stackoverflow.com/questions/32977132/add-a-character-to-the-end-of-every-lines-in-notepad

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!