while( $str =~ /(Function: .+?)\nInput: (.+?)\nOutput: (.+?)\n/gs ){ print <