Notepad++ How to remove last character (:) on every line

notepad++, regex, replace

Solution

You can use a regular expression at the replace dialog.

Find:

.{1}$

Replace with nothing then just select `Replace All`

Full options are:

Problem

In Notepad++ how can I remove `:` at the end of lines like this FRUIT:SHOP:TBA0002:RACK 01:LINE 1:TOP:MAX:1602:1612: So it will become like this FRUIT:SHOP:TBA0002:RACK 01:LINE 1:TOP:MAX:1602:1612 I have a very large list which consists of around 3000 lines.

Original source