in reply to Re^2: Tracking consecutive charactersin thread Tracking consecutive characters
And if you just want to know the maximum string of consecutive !
$max = ( sort {$b<=>$a} map{length} /(!{2,})/g )[0]; [download]