my $text = '"C:\Programme\Internet Explorer\iexplore.exe" -nohome'; my $stripped = $1 if ($text =~ m/"(.*)"/); print $stripped, "\n";