$line =~ s/.*?\]: //; # note the ? following .*