Using regular expressions to do mass replace in Notepad++ and Vim

前端 未结 16 1621
迷失自我
迷失自我 2020-12-08 04:25

So I\'ve got a big text file which looks like the following:

16条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-08 05:00

    It may help if you're less specific. Your expression there is "greedy", which may be interpreted different ways by different programs. Try this in vim:

    %s/^<[^>]+>//
    

提交回复
热议问题