in reply to Trouble matching more than one line
if ($Hap =~ m/SomeText\n(.*?INT8U.*?)\nSomeText/s) { print "$1"; } [download]