if ($line =~ m!(.*)(?=Ghz)!) { print "Found $1 with a 'Ghz' specification\n"; };