$re = qr[QBlastInfoEnd \s+ --> ([.\n]*) \s* ]x; $html =~ $re; print $1;