Add a character ) to the end of every lines in Not

2019-06-24 01:14发布

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?

2条回答
再贱就再见
2楼-- · 2019-06-24 01:32

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?

查看更多
对你真心纯属浪费
3楼-- · 2019-06-24 01:40

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

enter image description here

查看更多
登录 后发表回答