Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 971
Ronaldinho Learn Coding Avatar asked Oct 06 '15 18:10

Ronaldinho Learn Coding


2 Answers

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

enter image description here

like image 134
ziddarth Avatar answered Oct 07 '22 20:10

ziddarth


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?

like image 1
inf3rno Avatar answered Oct 07 '22 22:10

inf3rno