Help for this page
if( $string =~ m/(?:[^!]*!){49999}[^!]*!/; ) { print $+[0] + 1, "\n" # Updated. }