小编use*_*848的帖子

查找搜索项目前后加4行

我正在使用notepad++并希望找到特定字符串出现的上下文.

所以搜索字符串是0wh.*0subj,我想在它之前和之后找到这个搜索项加上4行.

eg: xxx means whatever is on a new line. the search result should be:
xxx
xxx
xxx
xxx
0wh.*0subj
xxx
xxx
xxx
xxx
Run Code Online (Sandbox Code Playgroud)

我试过using \n\r但它不起作用.我们将非常感谢所提供的任何帮助.

问候

regex notepad++ regex-lookarounds

2
推荐指数
1
解决办法
3777
查看次数

标签 统计

notepad++ ×1

regex ×1

regex-lookarounds ×1