テキスト行を含むテキスト ファイルがあります。たとえば、次の行が条件を満たしている場合に、特定の行をリスト ボックスに追加しようとしています。
行が # で始まる場合、次の行が @ で始まり、その後のすべての行が @ で始まる場合は、その行を追加します。
#add this line
@add this line
@add this line
@add this line
#dont add because the next line is not a @
#dont add because the next line is not a @
#dont add because the next line is not a @
#dont add because the next line is not a @
#add this line
@add this line
@add this line
#dont add because the next line is not a @
#add this line
@add this line
#add this line
@add this line
これがシーンを作ることを願っています