Find and replace with reordered date format in notepad++

后端 未结 4 1940
失恋的感觉
失恋的感觉 2021-01-31 04:16

I have a file with a few thousand rows to be added to a MySQL database. There are date values in the rows which are in the dd-mm-yyyy format but I need them to be in the yyyy-mm

4条回答
  •  耶瑟儿~
    2021-01-31 05:05

    You can do this with Textpad:

    Find: ([0-9]+)-+([0-9]+)-+([0-9]+)

    Replace: \3-\2-\1

提交回复
热议问题