次のテキストがあり、「数字の始まり」と「数字の終わり」の間のテキストを抽出したいとします。動的な量の行があり、それらの数字が変化するのは1番目、2番目などだけです。 。データを抽出する各ファイルには、「数字の開始」と「数字の終わり」の間の行数が異なります。「数字の始まり」と「数字の終わり」の間のファイルに何行あるかわからないまま、「数字の始まり」と「数字の終わり」の間の内容に一致する正規表現を作成するにはどうすればよいですか?
よろしく!
This is the first line This is the second line
Start of numbers
This is the first line
This is the second line
This is the third line
This is the ...... line
This is the ninth line
End of numbers