简体   繁体   English

在记事本++中,如何在文件中搜索由多行分隔的一对字符串?

[英]In Notepad++, how to search for a pair of strings in a file that are separated by multiples lines?

I have a file in Notepad++ that reads with repeating sections like this:我在 Notepad++ 中有一个文件,其中包含如下重复部分:

something here xx
something here xxx
INS*Y*D3*60
something here x
something here xx
something here xxx
something here xxxx
something here xxxxx
DTP*349*17
something here...

I want to be able to do a search to find all of the instances where the我希望能够进行搜索以找到所有实例

 INS*Y 

and

 DTP*349 

appear as a pair of strings separated by unique rows of strings, skipping the string that ends the INS*Y row plus skipping all of the strings on the rows in between (which all contain unique information).显示为一对由唯一字符串行分隔的字符串,跳过结束 INS*Y 行的字符串,并跳过中间行上的所有字符串(它们都包含唯一信息)。

I have a file in Notepad++ that reads with repeating sections like this:我在 Notepad++ 中有一个文件,其中包含如下重复部分:

something here xx
something here xxx
INS*Y*D3*60
something here x
something here xx
something here xxx
something here xxxx
something here xxxxx
DTP*349*17
something here...

I want to be able to do a search to find all of the instances where the我希望能够进行搜索以找到所有实例

 INS*Y 

and

 DTP*349 

appear as a pair of strings separated by unique rows of strings, skipping the string that ends the INS*Y row plus skipping all of the strings on the rows in between (which all contain unique information).显示为一对由唯一字符串行分隔的字符串,跳过结束 INS*Y 行的字符串,并跳过中间行上的所有字符串(它们都包含唯一信息)。

I have a file in Notepad++ that reads with repeating sections like this:我在 Notepad++ 中有一个文件,其中包含如下重复部分:

something here xx
something here xxx
INS*Y*D3*60
something here x
something here xx
something here xxx
something here xxxx
something here xxxxx
DTP*349*17
something here...

I want to be able to do a search to find all of the instances where the我希望能够进行搜索以找到所有实例

 INS*Y 

and

 DTP*349 

appear as a pair of strings separated by unique rows of strings, skipping the string that ends the INS*Y row plus skipping all of the strings on the rows in between (which all contain unique information).显示为一对由唯一字符串行分隔的字符串,跳过结束 INS*Y 行的字符串,并跳过中间行上的所有字符串(它们都包含唯一信息)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM