REGEX in Notepad++ find/replace

前端 未结 2 1184
长情又很酷
长情又很酷 2021-01-26 02:39

Is it possible to use the value of a regex in the \"FIND\" part of a find/replace in Notepad++ ?

Here\'s what i have :

FIND: ^.{105}.*(.)
REPLACE: \\r\\         


        
2条回答
  •  情话喂你
    2021-01-26 02:48

    You could do:

    Find what: ^(.{105}).
    Replace with: $1\r\n

    Make sure you have checked Regular expression BUT NOT dot matches newline

    then click on Replace all

    This will capture in group 1 the first 105 characters in each line.

提交回复
热议问题