my $string = "http://www.ams.net"; $string =~ s!(.*)!$1!g; # g für global print $string; ^Z http://www.ams.net