This solution is for Notepad ++
Select "Regular Expression" in search mode. Make sure that the ". Matches newline" check box is unchecked .
Find what:. .{x}.+
Replace with: (empty)
If you do not want to leave an empty string after replacement:
Find what:. .{x}.+(\r?\n|\n|$)
Replace x number of your choice.
source share