次のようなテキストがあります。
hello world /* select a from table_b
*/ some other text with new line cha
racter and there are some blocks of
/* any string */ select this part on
ly
////RESULT rest string
テキストは複数行あり、最後に出現した "*/" から "////RESULT" まで抽出する必要があります。この場合、結果は次のようになります。
select this part on
ly
perlでこれを達成する方法は?
私は試み\\\*/(.|\n)*////RESULT
ましたが、それは最初の「* /」から始まります