のパターンを見るたびに; そしてabc [0]の直後に最初の行を印刷する必要があります。および abc[0] を含む行。
私はこのようなものを持っています
blah blah;
blah blah blah;
xyz blah blah,
blah blah
abc[2]
abc[1],
abc[0]
blah blah,
blah blah
abc[1],
abc[0]
blah blah
blah blah;
pqr blah blah
blah blah blah
abc[0]
必要な出力は以下のとおりです
xyz blah blah,
abc[0]
pqr blah blah
abc[0]
ありがとう。