Project : error PRJ0019 #### if ($totalOutput =~ /^Project : error (\w+)/) { my $project = $1; ... }