Notepad++ : Insert blank new line after match of some string

拜拜、爱过 提交于 2020-01-11 06:29:29

问题


I want to insert new line after (4) option in whole document in notepad++

  1. For his alleged involvement in
    espio-nage
    (1) abc
    (2) sdf
    (3) asf
    (4) agg
  2. When the Principal was entering
    the class, all my friends quietly...
    (1) dfg
    (2) hsc
    (3) sdg
    (4) fse

Below expression is not working.
Find what: ^.+(4)
Replace with: \n$0


回答1:


Should be like this.

Find: (\(4\).+)

Replace: $1\n

Keep in mind that the brackets ( and ) have a special meaning in regex, so you should escape them with \.



来源:https://stackoverflow.com/questions/51870346/notepad-insert-blank-new-line-after-match-of-some-string

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!