while () { next unless /^tag\: (.*)$/; print "Found tag: $1\n"; }