label one: somevalue label two: a very long value : that does not fit on one line so it continues : on another line label thr: someother value #### $line =~ /^\s*(\w+)?\s*:\s*(.*)$/; next unless $1 || $2;