How to remove the last 13 (or n) characters of every line using Notepad++

前端 未结 3 1185
清酒与你
清酒与你 2020-12-31 15:31

I have a file which each line that ends with Mar 15, 2013 and other dates so I need to remove the end of each line say the last 13 characters

Each line

3条回答
  •  情歌与酒
    2020-12-31 16:01

    As others already said, use a regex search in the search and replace dialogue (ctrl + h) with the pattern the dates follow. Given your example this should do:

    [A-Za-z]{3}\s(\d){1,2},\s?\d{4}$
    

    Replace with empty string.

提交回复
热议问题