Search code examples
regexreplacenotepad++

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?


Solution

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

    enter image description here