问题
I want to insert new line after (4) option in whole document in notepad++
- For his alleged involvement in
espio-nage
(1) abc
(2) sdf
(3) asf
(4) agg- 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